/
iliyagladkov
/
to-do-react
Обзор
Документация
Войти
/
iliyagladkov
/
to-do-react
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/core-js/modules/esnext.array.with.js
14 строк
450 B
Iliya
Final
18 фев 2023, 15:04
18 фев 2023, 15:04
fae6815
Код
Авторство
О чём код?
'use strict'; var $ = require('../internals/export'); var arrayWith = require('../internals/array-with'); var toIndexedObject = require('../internals/to-indexed-object'); var $Array = Array; // `Array.prototype.with` method // https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.with $({ target: 'Array', proto: true }, { 'with': function (index, value) { return arrayWith(toIndexedObject(this), $Array, index, value); } });