You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: now that we have Validator, do we still want to overload valueType? Or split it up into:// TODO: {valueTypeOf: 'boolean'} vs {valueInstanceOf: 'Vector2'}if(options.valueType){constvalueType=options.valueType;if(typeofvalueType==='string'){// primitive typeassert(typeofvalue===valueType,'value should have typeof '+valueType+', value='+value);}elseif(typeofvalueType==='function'){// constructorassert(valueinstanceofvalueType,'value should be instanceof '+valueType.name+', value='+value);}}
From Validator.js:
Related to #189.
Client code would change from:
to
Self assigning to consider before bringing it to the dev team.
The text was updated successfully, but these errors were encountered: