清空
This commit is contained in:
1 parent
7c2ab0b7ad
commit
cff33ad7d1
6370 files changed
+378844
-82245
No files matched your search
+8
@@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
var charAt = require('../internals/string-multibyte').charAt;
|
||||
|
||||
// `AdvanceStringIndex` abstract operation
|
||||
// https://tc39.es/ecma262/#sec-advancestringindex
|
||||
module.exports = function (S, index, unicode) {
|
||||
return index + (unicode ? charAt(S, index).length : 1);
|
||||
};
|
||||
Reference in new issue
Block a user