Version 1
[yaffs-website] / node_modules / core-js / library / modules / es7.string.pad-start.js
diff --git a/node_modules/core-js/library/modules/es7.string.pad-start.js b/node_modules/core-js/library/modules/es7.string.pad-start.js
new file mode 100644 (file)
index 0000000..b79b605
--- /dev/null
@@ -0,0 +1,10 @@
+'use strict';
+// https://github.com/tc39/proposal-string-pad-start-end
+var $export = require('./_export')
+  , $pad    = require('./_string-pad');
+
+$export($export.P, 'String', {
+  padStart: function padStart(maxLength /*, fillString = ' ' */){
+    return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);
+  }
+});
\ No newline at end of file