@atomic-packages/common-functions

1.0.5 • Public • Published

@atomic-packages/common-functions

@atomic-packages/common-functions is a node package containing common functions that may be used in the development scenario. These include splitting strings based on a delimeter, conversion between objects to arrays, object arrays to arrays, finding elements in arrays and objects, finding existence of key in objects and many more.

Installation

From https://www.npmjs.com/package/@atomic-packages/common-functions

npm i @atomic-packages/common-functions

Usage

Eg: Using the

const commonFunction = require('@atomic-packages/common-functions'); // at top of file require the package

const objectExample ={
        id:1,
        name:'John',
        age:34,
        location:'Australia'
    };

const output = commonFunction.keyExists(objectExample,'id');

Contributing

Pull requests are welcome for any changes. For major changes, first open an issue and then contribute

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @atomic-packages/common-functions

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

4.52 kB

Total Files

3

Last publish

Collaborators

  • atomic-packages