Comments (6)
Just to clarify, nothing too complex just:
function partial(f){
var args = Array.prototype.slice.call(arguments, 1);
return function(){
return f.apply(null, args.concat(Array.prototype.slice.call(arguments)));
};
}
from hoek.
Per the reasons described in #98 (this is not a general purpose module) I'm going to decline on this one.
from hoek.
I see, didn't know about that. Thanks for clarifying!
from hoek.
@dschenkelman couldn't you achieve that with either bind
or async.apply
?
from hoek.
@arb +1 for bind
. We ended up getting rid of async
to use items
, but bind would work :)
from hoek.
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
from hoek.
Related Issues (20)
- Error.captureStackTrace can't be used in Joi's browser build HOT 1
- Block once in contain() when subject is an object HOT 1
- contain() part option allows no matches
- Improve clone() performance
- Add ts.XOR<>
- Add isPromise()
- Support only node 12
- Fix shallow defaults clone
- Clone fails to copy override array prototype
- Prevent prototype poisoning in clone()
- Prevent prototype poisoning in clone() (v8)
- Recommended settings?
- deepEqual() can fail on subclassed map HOT 7
- Fix prototype pollution HOT 4
- applyToDefaults() does not respect nullOverride when shallow is used
- Change Log for 9.2.1 is not found HOT 3
- Missing types in typescript with module resolution nodenext HOT 3
- Cannot find module '@hapi/hoek/assert' HOT 3
- TypeScript errors on import
- Incorrect default documented for `mergeArrays` option HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hoek.