Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Anderson, Danny H
gist-charts
Commits
08e47c49
Commit
08e47c49
authored
Oct 05, 2018
by
David Anderson
Browse files
Error message names correct method
parent
88911b25
Changes
1
Hide whitespace changes
Inline
Side-by-side
gist-charts/source/classes/minMax.class.ts
View file @
08e47c49
...
...
@@ -11,7 +11,7 @@ export class MinMax {
compare
(
x
:
number
)
{
const
me
=
this
;
if
(
isNaN
(
x
)
)
{
throw
'
MinMax.
apply
expects a number but NaN was given
'
;
throw
'
MinMax.
compare
expects a number but NaN was given
'
;
}
me
.
min
=
Math
.
min
(
x
,
me
.
min
);
me
.
max
=
Math
.
max
(
x
,
me
.
max
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment