Cara membuat ES6 Default Argument pada fungsi
https://remysharp.com/2017/10/25/es6-default-arguments
#es6 #default #argument
https://remysharp.com/2017/10/25/es6-default-arguments
#es6 #default #argument
Membuat parameter atau argumen array di dalam fungsi dengan spread operator
https://dev.to/samanthaming/passing-arrays-as-function-arguments-4gcm
#array #function #argument #spread
https://dev.to/samanthaming/passing-arrays-as-function-arguments-4gcm
#array #function #argument #spread
DEV Community
Passing Arrays as Function Arguments
If you want to pass an array into a variadic function. You can use ES6 spread to turn that array into a list of arguments.