0.0.2 • Published 1 month ago
@leonetti/array-map-ts v0.0.2
array map typescript
map objects and keys into a new array using typescript.
Install
npm install @leonetti/array-map-ts
Usage
import {mapToArray} from '@leonetti/array-map-ts';
const obj = {
key1 : 'value1',
key2 : 'value2'
};
console.log(mapArray(obj, (key, value) => key + ' ' + value));
0.0.2
1 month ago