jsmp-infra-array-string-helper
v1.1.1
Published
Helper functions for array, string
Downloads
15
Maintainers
Readme
jsmp-infra-array-string-helper
Create an array of object values without determined object fields, from the input array if objects
Modify string to zIgZaG case
Install
$ npm install jsmp-infra-array-string-helper
Usage
const {
getModifiedArray,
convertToZigzagCase
} = require('jsmp-infra-array-string-helper');
getModifiedArray([{ name: 'John', age: 25, id: '1' }], 'id');
//=> [{ name: 'John', age: 25 }]
convertToZigzagCase('fizzbuzz', 0);
//=> 'FiZzBuZz'
convertToZigzagCase('fizzbuzz', 1);
//=> 'fIzZbUzZ'