1.1.5 • Published 5 years ago

abacus-clone v1.1.5

Weekly downloads
11
License
Apache-2.0
Repository
-
Last release
5 years ago

abacus-clone

Creates a deep copy of an array or object such that modifying any level of the copy will not change anything on the original

The interceptor function is called on every property of the object passed including the object itself. It must return a value. If no interceptor function is passed, a default interceptor that results in a deep clone is used.

Example

interceptor(value, key)

(value, key) => {
  if(key === 'money')
    return value * 2;
  return value;
}
1.1.5

5 years ago

1.1.5-rc.3

5 years ago

1.1.5-rc.2

5 years ago

1.1.5-rc.1

5 years ago

1.1.5-rc.0

5 years ago

1.1.4

5 years ago

1.1.4-rc.3

5 years ago

1.1.4-rc.2

5 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.1-rc.1

6 years ago

1.1.0

6 years ago

1.1.0-rc.1

6 years ago

1.0.0

7 years ago

0.0.6-dev.9

7 years ago

0.0.6-dev.8

8 years ago

0.0.6-dev.7

8 years ago

0.0.6-dev.6

8 years ago

0.0.6-dev.5

8 years ago

0.0.6-dev.3

8 years ago

0.0.6-dev.2

8 years ago

0.0.5

8 years ago

0.0.5-rc.1

8 years ago

0.0.5-rc.0

8 years ago

0.0.4

8 years ago

0.0.3

9 years ago

0.0.2

9 years ago