Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Commit

Permalink
nevermind
Browse files Browse the repository at this point in the history
  • Loading branch information
molarmanful committed Jan 2, 2016
1 parent f299016 commit 44e14af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interpreter.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
math.import(numbers,{wrap:true,silent:true});

//prototype-based function aliasing
[String,Array,Number,Object,RegExp,Date,s,_,XRegExp,Function].map(v=>Object.getOwnPropertyNames(v.prototype).map((x,y)=>v.prototype[String.fromCharCode(y+248)]=v.prototype[x]));
[String,Array,Number,Object,RegExp,Date,s,_,XRegExp,Function].map(v=>Object.getOwnPropertyNames(v).map((x,y)=>v.prototype[String.fromCharCode(y+248)]=v.prototype[x]));
//object-based function aliasing
[math,String,Array,Number,Object,JSON,RegExp,XRegExp,Date,_,s,window,Function].map(v=>Object.getOwnPropertyNames(v).map((x,y)=>v[String.fromCharCode(y+248)]=v[x]));
//function alias helper: use as `alias(Array,METHOD_NAME_STRING)`
Expand Down

0 comments on commit 44e14af

Please sign in to comment.