You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
527 B
19 lines
527 B
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
function isNumber(v) {
|
|
return v === +v;
|
|
}
|
|
exports.isNumber = isNumber;
|
|
function isString(v) {
|
|
return typeof v === 'string';
|
|
}
|
|
exports.isString = isString;
|
|
function isObject(v) {
|
|
return v != null && typeof v === 'object' && Array.isArray(v) === false;
|
|
}
|
|
exports.isObject = isObject;
|
|
function isPlainObject(v) {
|
|
return isObject(v) && [null, Object.prototype].includes(Object.getPrototypeOf(v));
|
|
}
|
|
exports.isPlainObject = isPlainObject;
|