Methods
isArguments(o) → {Boolean}
Checks to see if an object is the arguments object, accessible inside functions that are defined using the functions keyword.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is the arguments object (or false if it isn't).
- Type
- Boolean
isArray(o) → {Boolean}
Checks to see if an object is an Array.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is an Array (or false if it isn't).
- Type
- Boolean
isArrayBuffer(o) → {Boolean}
Checks to see if an object is an ArrayBuffer.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is an ArrayBuffer (or false if it isn't).
- Type
- Boolean
isAsyncFunction(o) → {Boolean}
Checks to see if an object is an AsyncFunction.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is an AsyncFunction (or false if it isn't).
- Type
- Boolean
isBigInt(o) → {Boolean}
Checks to see if an object is a BigInt.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a BigInt (or false if it isn't).
- Type
- Boolean
isBigInt64Array(o) → {Boolean}
Checks to see if an object is a BigInt64Array.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a BigInt64Array (or false if it isn't).
- Type
- Boolean
isBigUint64Array(o) → {Boolean}
Checks to see if an object is a BigUint64Array.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a BigUint64Array (or false if it isn't).
- Type
- Boolean
isBoolean(o) → {Boolean}
Checks to see if an object is a Boolean.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Boolean (or false if it isn't).
- Type
- Boolean
isClass(o) → {Boolean}
Checks to see if an object is a class. isClass should only be used in a development environment. In production, use isFunction instead.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Class (or false if it isn't).
- Type
- Boolean
isDataView(o) → {Boolean}
Checks to see if an object is a DataView.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a DataView (or false if it isn't).
- Type
- Boolean
isDate(o) → {Boolean}
Checks to see if an object is a Date.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Date (or false if it isn't).
- Type
- Boolean
isError(o) → {Boolean}
Checks to see if an object is an Error.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is an Error (or false if it isn't).
- Type
- Boolean
isFloat(o) → {Boolean}
Checks to see if an object is a float.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a float (or false if it isn't).
- Type
- Boolean
isFloat32Array(o) → {Boolean}
Checks to see if an object is a Float32Array.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Float32Array (or false if it isn't).
- Type
- Boolean
isFloat64Array(o) → {Boolean}
Checks to see if an object is a Float64Array.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Float64Array (or false if it isn't).
- Type
- Boolean
isFunction(o) → {Boolean}
Checks to see if an object is a Function.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Function (or false if it isn't).
- Type
- Boolean
isGenerator(o) → {Boolean}
Checks to see if an object is a Generator.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Generator (or false if it isn't).
- Type
- Boolean
isGeneratorFunction(o) → {Boolean}
Checks to see if an object is a GeneratorFunction.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a GeneratorFunction (or false if it isn't).
- Type
- Boolean
isGlobalThis(o) → {Boolean}
Checks to see if an object is globalThis.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is globalThis (or false if it isn't).
- Type
- Boolean
isInfinite(o) → {Boolean}
Checks to see if an object is infinite (either Infinity or -Infinity).
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is infinite (either Infinity or -Infinity) (or false if it isn't).
- Type
- Boolean
isInt8Array(o) → {Boolean}
Checks to see if an object is an Int8Array.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is an Int8Array (or false if it isn't).
- Type
- Boolean
isInt16Array(o) → {Boolean}
Checks to see if an object is an Int16Array.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is an Int16Array (or false if it isn't).
- Type
- Boolean
isInt32Array(o) → {Boolean}
Checks to see if an object is an Int32Array.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is an Int32Array (or false if it isn't).
- Type
- Boolean
isInteger(o) → {Boolean}
Checks to see if an object is an integer.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is an integer (or false if it isn't).
- Type
- Boolean
isIntl(o) → {Boolean}
Checks to see if an object is an instance of Intl.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is an instance of Intl (or false if it isn't).
- Type
- Boolean
isJSON(o) → {Boolean}
Checks to see if an object is JSON.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is JSON (or false if it isn't).
- Type
- Boolean
isMap(o) → {Boolean}
Checks to see if an object is a Map.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Map (or false if it isn't).
- Type
- Boolean
isMath(o) → {Boolean}
Checks to see if an object is Math.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is Math (or false if it isn't).
- Type
- Boolean
isNaN(o) → {Boolean}
Checks to see if an object is NaN (not a number).
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is NaN (or false if it isn't).
- Type
- Boolean
isNull(o) → {Boolean}
Checks to see if an object is null.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is null (or false if it isn't).
- Type
- Boolean
isNumber(o) → {Boolean}
Checks to see if an object is a Number.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Number (or false if it isn't).
- Type
- Boolean
isObject(o) → {Boolean}
Checks to see if an object is an Object.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is an Object (or false if it isn't).
- Type
- Boolean
isPrimitive(o) → {Boolean}
Checks to see if an object is a Primitive (a boolean, numbner, string, sumbol or undefined).
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Primitive (or false if it isn't).
- Type
- Boolean
isPromise(o) → {Boolean}
Checks to see if an object is a Promise.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Promise (or false if it isn't).
- Type
- Boolean
isProxy(o) → {Boolean}
Checks to see if an object is Proxy.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is Proxy (or false if it isn't).
- Type
- Boolean
isReflect(o) → {Boolean}
Checks to see if an object is Reflect.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is Reflect (or false if it isn't).
- Type
- Boolean
isRegExp(o) → {Boolean}
Checks to see if an object is a RegExp.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a RegExp (or false if it isn't).
- Type
- Boolean
isSafeFloat(o) → {Boolean}
Checks to see if an object is a safe float.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a safe float (or false if it isn't).
- Type
- Boolean
isSafeInteger(o) → {Boolean}
Checks to see if an object is a safe integer.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a safe integer (or false if it isn't).
- Type
- Boolean
isSet(o) → {Boolean}
Checks to see if an object is a Set.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Set (or false if it isn't).
- Type
- Boolean
isSharedArrayBuffer(o) → {Boolean}
Checks to see if an object is a SharedArrayBuffer.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a SharedArrayBuffer (or false if it isn't).
- Type
- Boolean
isString(o) → {Boolean}
Checks to see if an object is a String.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a String (or false if it isn't).
- Type
- Boolean
isSymbol(o) → {Boolean}
Checks to see if an object is a Symbol.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Symbol (or false if it isn't).
- Type
- Boolean
isTypedArray(o) → {Boolean}
Checks to see if an object is a Typed Array.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Typed Array (or false if it isn't).
- Type
- Boolean
isUint8Array(o) → {Boolean}
Checks to see if an object is a Uint8Array.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Uint8Array (or false if it isn't).
- Type
- Boolean
isUint8ClampedArray(o) → {Boolean}
Checks to see if an object is a Uint8ClampedArray.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Uint8ClampedArray (or false if it isn't).
- Type
- Boolean
isUint16Array(o) → {Boolean}
Checks to see if an object is a Uint16Array.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Uint16Array (or false if it isn't).
- Type
- Boolean
isUint32Array(o) → {Boolean}
Checks to see if an object is a Uint32Array.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Uint32Array (or false if it isn't).
- Type
- Boolean
isUndefined(o) → {Boolean}
Checks to see if an object is a Undefined.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a Undefined (or false if it isn't).
- Type
- Boolean
isWeakMap(o) → {Boolean}
Checks to see if an object is a WeakMap.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a WeakMap (or false if it isn't).
- Type
- Boolean
isWeakSet(o) → {Boolean}
Checks to see if an object is a WeakSet.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a WeakSet (or false if it isn't).
- Type
- Boolean
isWebAssembly(o) → {Boolean}
Checks to see if an object is a WebAssembly.
Parameters:
Name | Type | Description |
---|---|---|
o |
* | An object |
- Source:
Returns:
true if the object is a WebAssembly (or false if it isn't).
- Type
- Boolean