UNPKG

solutaaliquid

Version:

common utils for javascript. Utils to get the global scope (browser, webworker & co.). Customizable string escaper. Utilitize for objects. Extension at base javascript api (usefull extention like String.hashcode()).

13 lines (10 loc) 253 B
export const noValue = (value) => { return value == null || typeof value === "undefined"; }; export const emtpyOrNoValueString = (value) => { return noValue(value) || value.trim().length == 0; }; export default { noValue, emtpyOrNoValueString };