stdarg / is2 Goto Github PK
View Code? Open in Web Editor NEWA type-checking module for node.js to test values and types. Does not throw exceptions.
License: MIT License
A type-checking module for node.js to test values and types. Does not throw exceptions.
License: MIT License
Need to root cause.
Fix this.
is.fun(() => {}) //true
is.fun(async () => {}) //false
Because toString.call(async () => {}) === '[object AsyncFunction] '
I don't know how you want to handle this, an async function is a function, so you could just return true
, or you may want to distinguish between an async function and a non-async function.
How can I check whether it is a credit card or a debit card
If you are interested, I can submit a PR with the correct file to do automatic builds with travis?
Hi Edmond.
If that isn't fixed, I wonder if its possible to rework this to not depend on compiled modules?
Its great to have a good quality set of checks on types and not have to write them ourselves, but getting a binary dep just for is2.positiveInt()
isn't worth it for us.
It looks like your only use of objectid is to call isValid()
, would you take a PR to inline https://github.com/jden/objectid/blob/master/index.js#L7-L10 rather than having to depend on objectid, and through it, the old, compiled, version of bson?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.