web 3d图形渲染器
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
438 B

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