跳至主要內容

Array.isTemplateObject

小于 1 分钟featurees-proposal

Array.isTemplateObjectopen in new window

模块

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

类型

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

入口点

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

示例

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