跳至主要內容

Function

小于 1 分钟featurees-standard

Function

模块

仅 ES5:

类型

interface Function {
  name: string;
  bind(thisArg: any, ...args: Array<any>): Function;
  [Symbol.hasInstance](value: any): boolean;
}

入口点

core-js/es|stable|actual|full/function
core-js/es|stable|actual|full/function/name
core-js/es|stable|actual|full/function/has-instance
core-js(-pure)/es|stable|actual|full/function/bind
core-js(-pure)/es|stable|actual|full/function/virtual/bind

示例

示例open in new window:

(function foo() {}).name; // => 'foo'

console.log.bind(console, 42)(43); // => 42 43