UNPKG

307 BJavaScriptView Raw
1'use strict';
2var $ = require('../internals/export');
3var charAt = require('../internals/string-multibyte').charAt;
4
5// `String.prototype.at` method
6// https://github.com/mathiasbynens/String.prototype.at
7$({ target: 'String', proto: true }, {
8 at: function at(pos) {
9 return charAt(this, pos);
10 }
11});