/
Mikhail823
/
todo
Обзор
Документация
Войти
/
Mikhail823
/
todo
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
node_modules/string.prototype.includes/shim.js
17 строк
352 B
Mikhail Popov
j
23 фев 2026, 16:12
23 фев 2026, 16:12
ff7232a
Код
Авторство
О чём код?
/*! https://mths.be/includes v2.0.0 by @mathias */ 'use strict'; var define = require('define-properties'); var getPolyfill = require('./polyfill'); module.exports = function shimIncludes() { var polyfill = getPolyfill(); if (String.prototype.includes !== polyfill) { define(String.prototype, { includes: polyfill }); } return polyfill; };