mirror of https://github.com/jkjoy/sunpeiwen.git
16 lines
367 B
JavaScript
16 lines
367 B
JavaScript
|
'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);
|
||
|
}
|
||
|
});
|