fix(seed): Change variable name from array to args (#16472)
Changed variable name from array to args. It will validate the last validation. Particular variable name is required but it is not mentioned in description. Closes #16351
This commit is contained in:
committed by
mrugesh mohapatra
parent
6e3fb92c9b
commit
6307c0f04b
@ -367,8 +367,8 @@
|
||||
"const sum = (function() {",
|
||||
" \"use strict\";",
|
||||
" return function sum(x, y, z) {",
|
||||
" const array = [ x, y, z ];",
|
||||
" return array.reduce((a, b) => a + b, 0);",
|
||||
" const args = [ x, y, z ];",
|
||||
" return args.reduce((a, b) => a + b, 0);",
|
||||
" };",
|
||||
"})();",
|
||||
"console.log(sum(1, 2, 3)); // 6"
|
||||
|
Reference in New Issue
Block a user