UNPKG

jsev

Version:

Environment for building Web API's.

17 lines 612 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function getPropertyByNameIgnoreCase(obj, name) { const nName = name.toLocaleLowerCase(); const key = Object.keys(obj).find((x) => x.toLocaleLowerCase() === nName); return key ? obj[key] : undefined; } exports.getPropertyByNameIgnoreCase = getPropertyByNameIgnoreCase; function isFunction(obj) { return typeof obj === "function"; } exports.isFunction = isFunction; function isObject(obj) { return obj instanceof Object && obj.constructor === Object; } exports.isObject = isObject; //# sourceMappingURL=object.js.map