4 ms·
Neither are very elegant, but you could always do something like: var R = require('ramda'); with (R) { var propEq = use(pipe).over(get, eq
by wldlyinaccurate 12y ago
Neither are very elegant, but you could always do something like:
var R = require('ramda');
with (R) {
var propEq = use(pipe).over(get, eq);
}
...Or even:
var R = require('ramda');
for (var f in R) {
window[f] = R.f;
}
- eurleif 12y agoNote that with statements kill performance, at least in V8. https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#2-unsupported-syntax https://github.com/petkaantonov/bluebird/wiki/Optimization-k...