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.
10 lines
337 B
10 lines
337 B
2 years ago
|
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 };
|