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.
9 lines
337 B
9 lines
337 B
Object.freeze({});
|
|
Object.freeze([]);
|
|
const isString = (val) => typeof val === "string";
|
|
const objectToString = Object.prototype.toString;
|
|
const toTypeString = (value) => objectToString.call(value);
|
|
const toRawType = (value) => {
|
|
return toTypeString(value).slice(8, -1);
|
|
};
|
|
export { toRawType as a, isString as i, toTypeString as t };
|
|
|