source: imaps-frontend/node_modules/core-js/internals/advance-string-index.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 280 bytes
Line 
1'use strict';
2var charAt = require('../internals/string-multibyte').charAt;
3
4// `AdvanceStringIndex` abstract operation
5// https://tc39.es/ecma262/#sec-advancestringindex
6module.exports = function (S, index, unicode) {
7 return index + (unicode ? charAt(S, index).length : 1);
8};
Note: See TracBrowser for help on using the repository browser.