Last change
on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
438 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var $ = require('../internals/export');
|
---|
3 | var charAt = require('../internals/string-multibyte').charAt;
|
---|
4 | var fails = require('../internals/fails');
|
---|
5 |
|
---|
6 | var FORCED = fails(function () {
|
---|
7 | return '𠮷'.at(0) !== '𠮷';
|
---|
8 | });
|
---|
9 |
|
---|
10 | // `String.prototype.at` method
|
---|
11 | // https://github.com/mathiasbynens/String.prototype.at
|
---|
12 | $({ target: 'String', proto: true, forced: FORCED }, {
|
---|
13 | at: function at(pos) {
|
---|
14 | return charAt(this, pos);
|
---|
15 | }
|
---|
16 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.