1.0.0 • Published 5 years ago

i-js-utils v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

i-React utils

Build Status npm version codecov

import {isEmptyObject, isNotBlank, setObjProperty, getObjProperty, isValidNIP, isValidREGON, isValidEmail, devOnly} from 'i-react-utils';

bool isEmptyObject(object) - true if object has no it's own properties

bool isNotBlank(string) - true if string is not blank

void setObjProperty(obj, propertyPath, value) - set object property for propertyPath equal to a.b result is {a:{b:value}}

object getObjProperty(obj, propertyPath) - get property value. See description for setObjProperty(obj, propertyPath, value)

void devOnly(callback) - execute callback only when running in development mode

bool isValidNIP(string)

bool isValidREGON(string)

bool isValidEmail(string)