Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
18 lines
352 B
Plaintext
18 lines
352 B
Plaintext
/*! 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;
|
|
};
|