> > >> This is trivial with Symbols: > > let shuffle = Symbol(); > > Array.prototype[shuffle] = function() {...}; > > > Only code that has access to the `shuffle` symbol may use the method: > > let shuffled = array[shuffle](); > > Unfortunately, such a construction will fail in a multi-realm (i.e. multiple frames) environment.
{ Kevin }
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss