isBuiltIn
Test if a value is a JavaScript built-in type.
isBuiltIn(obj)
Return true if obj is some type of JavaScript native built-in; false otherwise.
canReflect.isBuiltIn(null); // -> true
canReflect.isBuiltIn({}); // -> true
canReflect.isBuiltIn(1); // -> true
canReflect.isBuiltIn([]); // -> true
canReflect.isBuiltIn(function() {}); // -> true
canReflect.isBuiltIn("foo"); // -> true
canReflect.isBuiltIn(new Date()); // -> true
canReflect.isBuiltIn(/[foo].[bar]/); // -> true
canReflect.isBuiltIn(new DefineMap); // -> false
Not supported in browsers that have implementations of Map/Set where
toString is not properly implemented to return [object Map]/[object Set].
Parameters
- obj
{*}:maybe a built-in value
Returns
{Boolean}: