Lodash object project chunk method

please can someone help me to fix this error , this is the code:






// Do not write or modify code below this line.

const _ = {
 
chunk(array, size) {
 
  let tab 
  let count = 0
  if(size == null) {
    size = 1
  }
 for(let i = 0; i < array.length; i+
 +) {
   
   for(let j = i + size; j < array.length-1; j++) {
     array[j] = ' '
   }
  
   }
   
   return array
}




console.log(_.chunk([6, 3, 0, 4], 2))
module.exports = _;
```this is the error : 
$ node test/chunk
/home/ccuser/workspace/underscore-javascript-capstone/_.js:104
 +) {
  ^
SyntaxError: Unexpected token )
    at createScript (vm.js:53:10)
    at Object.runInThisContext (vm.js:95:10)
    at Module._compile (module.js:543:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/ccuser/workspace/underscore-javascript-capstone/test/chunk.js:1:73)
$

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.