source: trip-planner-front/node_modules/core-js/modules/esnext.string.at.js@ 8d391a1

Last change on this file since 8d391a1 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';
2var $ = require('../internals/export');
3var charAt = require('../internals/string-multibyte').charAt;
4var fails = require('../internals/fails');
5
6var 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.