/utils

Primary LanguageJavaScript

SegmentStream Utils

Installation

Using npm

npm i --save @segmentstream/utils

or using yarn

yarn add @segmentstream/utils

Adding to you project

import cleanObject from '@segmentstream/utils/cleanObject'

const cleanedObject = cleanObject({ a: undefined, b: null, c: 'value' }) // { c: 'value'}

Development

Execute npm test for run unit test!