Skip to content

Commit 10c880f

Browse files
committed
Formatting changes
1 parent 127349c commit 10c880f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -487,25 +487,25 @@ function find_key_and_update(arr, parent_key, parent_value, target_key, target_v
487487

488488
/**
489489
* For in range loop like python
490-
*
491-
* @param integer num
492-
* @param function callback
490+
*
491+
* @param integer num
492+
* @param function callback
493493
*/
494494
function for_in_range(num, callback) {
495495
for (let i = 0; i < num; i++) {
496-
callback(i)
496+
callback(i);
497497
}
498498
}
499499

500500
/**
501501
* Group by key in array of object
502-
*
502+
*
503503
* @param array arr
504504
* @param string key
505505
* @returns object
506506
*/
507507
function group_by(arr, key) {
508-
is_array(arr)
508+
is_array(arr);
509509
return arr.reduce(function (rv, x) {
510510
(rv[x[key]] = rv[x[key]] || []).push(x);
511511
return rv;

0 commit comments

Comments
 (0)