|
Download node_modules/setprototypeof/README.md from khoadang31/uptimerobot: direct link, hf CLI and curl.
- Browser
- Download file 844 Bytes
-
https://huggingface.co/khoadang31/uptimerobot/resolve/main/node_modules/setprototypeof/README.md
- Command line
-
hf download hf://khoadang31/uptimerobot/node_modules/setprototypeof/README.md
-
curl -L -o README.md https://huggingface.co/khoadang31/uptimerobot/resolve/main/node_modules/setprototypeof/README.md
844 Bytes
Polyfill for Object.setPrototypeOf
A simple cross platform implementation to set the prototype of an instianted object. Supports all modern browsers and at least back to IE8.
Usage:
$ npm install --save setprototypeof
var setPrototypeOf = require('setprototypeof')
var obj = {}
setPrototypeOf(obj, {
foo: function () {
return 'bar'
}
})
obj.foo() // bar
TypeScript is also supported:
import setPrototypeOf from 'setprototypeof'