神刀安全网

JavaScript Pandora's Box

pandora-box

What will it be?

JavaScript Pandora's Box

install

npm install pandora-box

pandora.find(host)

Finds and returns all methods on an object by traversing its property tree recursively and non-circularly.

pandora.findAll(host)

Finds and returns all methods on an object by traversing its property tree recursively and non-circularly. Then executes each of those methods without any arguments, and returns all methods on objects returned by each individual call, plus the original methods.

pandora(box)

Returns an (...args) => fn(...args) function that executes a random method in box , where box is an array of functions that defaults to .findAll(global) .

why?

because.

license

mit

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » JavaScript Pandora's Box

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
分享按钮