Closed eliperelman closed 10 years ago
I think it should be fn.is( type, value )
. The type
always comes first.
+1 :thumbsup: for type then value
Cool, I'll go ahead and make this change after I have the new build system in place. Thanks!
This is now in v0.8.0 with fed32709942e7d988c377e7bf3c120fde3a1d72b. Updates to docs forthcoming.
Current
.is()
API:fn.is( value, type )
wheretype
is a string type returned byfn.type
. Having the value come before the type means you cannot create a version with the type partially applied. If the API were:then you could do:
This would be a breaking API change, so I want to open for discussion before making changes if anyone has any objections.