Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

i-js-utils

m-szalik12MIT1.0.0

iJavaScript utils

javascript, javascript-utils

readme

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)