@useutils/key-value
v0.0.16
Published
<div align="center"> <img src="https://raw.githubusercontent.com/UseUtils/key-value/d089b1e567dc7542608c8ab0028d9c8d00b653b1/public/hero.svg"/> <h1>Key Value</h1> </div>
Readme
Key Value is an package to help the transfrom object in orher key value object:
Here some examples
KeyValue.from(object, callback);KeyValue.from({ 2010: 1 });
// return [{ key: 2010, value: 1 }]KeyValue.from({ Foo: 'Bar' }, (key, value) => ({ title: key, text: value }));
// return [{ title: "Foo", text: "Bar" }]