Skip to content

UseUtils/key-value

Repository files navigation

Key Value

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" }]