0.0.8 • Published 7 years ago

sv-utils v0.0.8

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

sv-utils

Set of JavaScript utils

Installation

npm install sv-utils --save

Object utils

import { objectUtils } from 'sv-utils';
objectUtils.getValue(object, property)

property - string, path to property, e.g. 'prop1.prop2.prop3'

objectUtils.setValue(object, property, value)

property - string, path to property, e.g. 'prop1.prop2.prop3'

Array utils

import { arrayUtils } from 'sv-utils';
arrayUtils.getIndexByProperty(array, propertyValue, property)

If property null or undefined then return array.indexOf(propertyValue)

getElementByProperty(arr, propertyValue, property)
0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago