Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / esnext.string.at.js
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 });