You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
367 B
16 lines
367 B
4 years ago
|
'use strict';
|
||
|
// https://github.com/mathiasbynens/String.prototype.at
|
||
|
var $export = require('./_export');
|
||
|
var $at = require('./_string-at')(true);
|
||
|
var $fails = require('./_fails');
|
||
|
|
||
|
var FORCED = $fails(function () {
|
||
|
return '𠮷'.at(0) !== '𠮷';
|
||
|
});
|
||
|
|
||
|
$export($export.P + $export.F * FORCED, 'String', {
|
||
|
at: function at(pos) {
|
||
|
return $at(this, pos);
|
||
|
}
|
||
|
});
|