summaryrefslogtreecommitdiffstats
path: root/node_modules/es-abstract/helpers/isPrefixOf.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/es-abstract/helpers/isPrefixOf.js')
-rw-r--r--node_modules/es-abstract/helpers/isPrefixOf.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/node_modules/es-abstract/helpers/isPrefixOf.js b/node_modules/es-abstract/helpers/isPrefixOf.js
deleted file mode 100644
index b67d640..0000000
--- a/node_modules/es-abstract/helpers/isPrefixOf.js
+++ /dev/null
@@ -1,13 +0,0 @@
-'use strict';
-
-var $strSlice = require('../helpers/callBound')('String.prototype.slice');
-
-module.exports = function isPrefixOf(prefix, string) {
- if (prefix === string) {
- return true;
- }
- if (prefix.length > string.length) {
- return false;
- }
- return $strSlice(string, 0, prefix.length) === prefix;
-};