Recognized instances

Recognized instances

An Arrayarrow-up-right of default objects that is used by the recognizeValue()arrow-up-right function to check the value instance by using the instanceofarrow-up-right operator. It can be expanded by the provided instances parameter.

recognize-instances.const.ts
const RECOGNIZE_INSTANCES = [
  Array,
  ArrayBuffer,
  Boolean,
  DataView,
  Date,
  Error,
  EvalError,
  Float32Array,
  Float64Array,
  Function,
  Int16Array,
  Int32Array,
  Int8Array,
  Map,
  Number,
  Object,
  Promise,
  RangeError,
  ReferenceError,
  RegExp,
  Set,
  Storage,
  String,
  SyntaxError,
  TypeError,
  URIError,
  Uint16Array,
  Uint32Array,
  Uint8Array,
  Uint8ClampedArray,
  WeakMap,
  WeakSet
];

Last updated