bishopZ / Typecast.js

No Longer Maintained - Typecast.js :: typing for Javascript
http://typecastjs.com/
30 stars 2 forks source link

OR and AND operators in typenames #25

Open bishopZ opened 10 years ago

bishopZ commented 10 years ago

it would be really nice to have OR and AND operators in type statements. like this:

type.is('arr||str', value); type.is('str&&json', value); etc