UNPKG
imma
Version:
latest (0.0.1)
0.0.1
A collection of functions for dealing with native arrays and objects immutably
imma
/
lib
/
object
/
forEach.js
7 lines
(6 loc)
•
137 B
JavaScript
View Raw
1
2
3
4
5
6
7
'use strict'
const
forEach =
module
.
exports
=
(
object
, fn
) =>
{
for
(
let
key
in
object
) {
fn
(
object
[key], key,
object
) } }