Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

array.from polyfill splitting up surrogate pairs

node v4.9.1
version: master
endpointsharetweet
var arrayFrom = require('array.from'); // ["🖐", "🏿"] const nativeResult = Array.from('🖐🏿'); // ["�", "�", "�", "�"] const polyfillResult = arrayFrom('🖐🏿'); console.log(nativeResult, polyfillResult);
Loading…

no comments

    sign in to comment