Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c909ae4

Browse files
Create minRestParameters.js
1 parent 3f50b1b commit c909ae4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎Javascript/minRestParameters.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//Create and complete a function minValue() which should return the minimum value of all arguments passed into it.
2+
3+
4+
function minValue(...restArguments){
5+
return Math.min(...restArguments)
6+
}
7+
8+
module.exports = minValue;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /