-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update Matrix3 to use Check #4832
Conversation
throw new DeveloperError('array is required'); | ||
} | ||
Check.typeOf.object(value, 'value'); | ||
Check.typeOf.object(array, 'array'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be Check.defined(array, 'array');
Also for all other arguments below that are of type arrays.
Check.typeOf.number(index, 'index'); | ||
Check.numeric.minimum(index, 0); | ||
Check.numeric.maximum(index, 2); | ||
Check.typeOf.object(result, 'result'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you reorder so that index
is checked before cartesian
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
Thanks @austinEng for you first PR! |
Congrats @austinEng on your first pull request! |
part of #4794