attrpath
Version:
Attribute Path Traverser.
44 lines • 875 B
JavaScript
/**
* Copyright © 2020 2021 2022 7thCode.(http://seventh-code.com/)
* This software is released under the MIT License.
* opensource.org/licenses/mit-license.php
*/
;
/**
* isNumber
*
* @remarks
* is Number?
*
* @param value - unknown value.
* @returns True/False
*/
export function isNumber(value) {
return ((typeof value === 'number') && (isFinite(value)));
}
/**
* isValue
*
* @remarks
* Value is not null or undef
*
* @param value
* @returns not null or undef
*/
export function isValue(value) {
return ((value !== null) && (typeof value !== 'undefined'));
}
/**
* isObject
*
* @remarks
* is Object or Array.
* [] or {} is True.
*
* @param value - unknown value.
* @returns True/False
*/
export function isContainer(value) {
return ((value !== null) && (typeof value === 'object'));
}
//# sourceMappingURL=base.js.map