github-pages-deploy-action/node_modules/core-js-pure/internals/advance-string-index.js
2020-03-06 22:45:40 -05:00

9 lines
287 B
JavaScript

'use strict';
var charAt = require('../internals/string-multibyte').charAt;
// `AdvanceStringIndex` abstract operation
// https://tc39.github.io/ecma262/#sec-advancestringindex
module.exports = function (S, index, unicode) {
return index + (unicode ? charAt(S, index).length : 1);
};