ddc10c96d57676741d294a2e35c64e17867a7b1d7852754d0ede1f430d0b51158aa379226667df1e2a7df702de743b6da946cf91ed8209c2c321097092a657 262 B

12345678
  1. 'use strict';
  2. var at = require('./_string-at')(true);
  3. // `AdvanceStringIndex` abstract operation
  4. // https://tc39.github.io/ecma262/#sec-advancestringindex
  5. module.exports = function (S, index, unicode) {
  6. return index + (unicode ? at(S, index).length : 1);
  7. };