UNPKG

string.fromcodepoint

Version:

A robust & optimized `String.fromCodePoint` polyfill, based on the ECMAScript 6 specification.

21 lines (14 loc) 477 B
/*! https://mths.be/fromcodepoint v1.0.0 by @mathias */ 'use strict'; var callBind = require('call-bind'); var define = require('define-properties'); var implementation = require('./implementation'); var getPolyfill = require('./polyfill'); var shim = require('./shim'); var boundFromCodePoint = callBind(getPolyfill(), String); define(boundFromCodePoint, { getPolyfill: getPolyfill, implementation: implementation, shim: shim }); module.exports = boundFromCodePoint;