Spaces:
Running
Running
Download 731ai/node_modules/core-js/internals/array-fill.js from u11310019/interactive-multi-web: direct link, hf CLI and curl.
- Browser
- Download file 760 Bytes
-
https://huggingface.co/spaces/u11310019/interactive-multi-web/resolve/main/731ai/node_modules/core-js/internals/array-fill.js
- Command line
-
hf download hf://spaces/u11310019/interactive-multi-web/731ai/node_modules/core-js/internals/array-fill.js
-
curl -L -o array-fill.js https://huggingface.co/spaces/u11310019/interactive-multi-web/resolve/main/731ai/node_modules/core-js/internals/array-fill.js
760 Bytes
| ; | |
| var toObject = require('../internals/to-object'); | |
| var toAbsoluteIndex = require('../internals/to-absolute-index'); | |
| var lengthOfArrayLike = require('../internals/length-of-array-like'); | |
| // `Array.prototype.fill` method implementation | |
| // https://tc39.es/ecma262/#sec-array.prototype.fill | |
| module.exports = function fill(value /* , start = 0, end = @length */) { | |
| var O = toObject(this); | |
| var length = lengthOfArrayLike(O); | |
| var argumentsLength = arguments.length; | |
| var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : undefined, length); | |
| var end = argumentsLength > 2 ? arguments[2] : undefined; | |
| var endPos = end === undefined ? length : toAbsoluteIndex(end, length); | |
| while (endPos > index) O[index++] = value; | |
| return O; | |
| }; | |