diff options
Diffstat (limited to 'node_modules/core-js/es/instance/starts-with.js')
| -rw-r--r-- | node_modules/core-js/es/instance/starts-with.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/core-js/es/instance/starts-with.js b/node_modules/core-js/es/instance/starts-with.js new file mode 100644 index 0000000..99a01a7 --- /dev/null +++ b/node_modules/core-js/es/instance/starts-with.js @@ -0,0 +1,9 @@ +var startsWith = require('../string/virtual/starts-with'); + +var StringPrototype = String.prototype; + +module.exports = function (it) { + var own = it.startsWith; + return typeof it === 'string' || it === StringPrototype + || (it instanceof String && own === StringPrototype.startsWith) ? startsWith : own; +}; |
