Skip to main content

Array.isTemplateObject

Less than 1 minutefeaturees-proposal

Array.isTemplateObjectopen in new window

Module

esnext.array.is-template-objectopen in new window

Types

interface ArrayConstructor {
  isTemplateObject(value: any): boolean;
}

Entry points

core-js/proposals/array-is-template-object
core-js(-pure)/full/array/is-template-object

Example

console.log(Array.isTemplateObject(((it) => it)`qwe${123}asd`)); // => true