jsmp-infra-array-string-helper

1.1.1 • Public • Published

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'

Package Sidebar

Install

npm i jsmp-infra-array-string-helper

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

7.64 kB

Total Files

8

Last publish

Collaborators

  • madfinn