safe-ops
v1.0.1
Published
functions for safe operations in js
Downloads
1
Readme
Safe-ops
The set of functions for safe operation in js
How to install
npm install safe-ops
Usage
isEmpty(string)
Checks string for null, undefined and ''
regExp(text, flags)
Safe create RegExp object from text. Special symbols will be masked.
compare(source, fobj)
Compares source object with fields from fobj; if source object contains all fields from fobj with same values when returns true, otherwise returns false;