6.0.16 • Published 9 months ago

object-set-all-values-to v6.0.16

Weekly downloads
53
License
MIT
Repository
github
Last release
9 months ago

Install

This package is pure ESM. If you're not ready yet, install an older version of this program, 4.1.0 (npm i object-set-all-values-to@4.1.0).

npm i object-set-all-values-to

Quick Take

import { strict as assert } from "assert";

import { setAllValuesTo } from "object-set-all-values-to";

assert.deepEqual(
  setAllValuesTo({
    a: "a",
    b: "b",
    c: "c",
    d: "d",
  }),
  {
    a: false,
    b: false,
    c: false,
    d: false,
  },
);

// you can change the default "false" to something else:
assert.deepEqual(
  setAllValuesTo(
    {
      a: "a",
      b: "b",
      c: "c",
      d: "d",
    },
    "x",
  ),
  {
    a: "x",
    b: "x",
    c: "x",
    d: "x",
  },
);

Documentation

Please visit codsen.com for a full description of the API.

Contributing

To report bugs or request features or assistance, raise an issue on GitHub.

Licence

MIT License.

Copyright © 2010-2024 Roy Revelt and other contributors.

6.0.16

9 months ago

6.0.15

11 months ago

6.0.14

12 months ago

6.0.13

1 year ago

6.0.12

1 year ago

6.0.11

2 years ago

6.0.10

2 years ago

6.0.9

2 years ago

6.0.8

2 years ago

6.0.7

2 years ago

5.1.6

2 years ago

5.1.5

2 years ago

5.1.4

2 years ago

5.1.3

2 years ago

5.1.2

2 years ago

6.0.6

2 years ago

6.0.1

2 years ago

6.0.0

2 years ago

6.0.3

2 years ago

6.0.2

2 years ago

6.0.5

2 years ago

6.0.4

2 years ago

5.0.15

2 years ago

5.1.1

2 years ago

5.1.0

2 years ago

5.0.14

3 years ago

5.0.13

3 years ago

5.0.7

3 years ago

5.0.10

3 years ago

5.0.11

3 years ago

5.0.12

3 years ago

5.0.6

3 years ago

5.0.5

3 years ago

5.0.4

3 years ago

5.0.3

3 years ago

5.0.2

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.1.0

4 years ago

4.0.16

4 years ago

4.0.15

4 years ago

4.0.14

4 years ago

4.0.13

4 years ago

4.0.12

4 years ago

4.0.11

4 years ago

4.0.10

4 years ago

4.0.9

4 years ago

4.0.8

4 years ago

4.0.7

4 years ago

4.0.6

4 years ago

4.0.5

4 years ago

4.0.4

4 years ago

4.0.3

4 years ago

4.0.1

4 years ago

4.0.2

4 years ago

4.0.0

4 years ago

3.10.1

4 years ago

3.10.0

4 years ago

3.9.68

4 years ago

3.9.67

4 years ago

3.9.66

4 years ago

3.9.65

4 years ago

3.9.64

4 years ago

3.9.63

4 years ago

3.9.62

4 years ago

3.9.61

4 years ago

3.9.60

5 years ago

3.9.59

5 years ago

3.9.58

5 years ago

3.9.57

5 years ago

3.9.56

5 years ago

3.9.55

5 years ago

3.9.54

5 years ago

3.9.53

5 years ago

3.9.52

5 years ago

3.9.51

5 years ago

3.9.50

5 years ago

3.9.49

5 years ago

3.9.48

5 years ago

3.9.47

5 years ago

3.9.46

5 years ago

3.9.45

5 years ago

3.9.44

5 years ago

3.9.43

5 years ago

3.9.42

5 years ago

3.9.41

5 years ago

3.9.40

5 years ago

3.9.39

5 years ago

3.9.38

5 years ago

3.9.37

5 years ago

3.9.36

5 years ago

3.9.35

5 years ago

3.9.34

5 years ago

3.9.32

5 years ago

3.9.31

5 years ago

3.9.29

5 years ago

3.9.28

5 years ago

3.9.27

5 years ago

3.9.26

6 years ago

3.9.25

6 years ago

3.9.24

6 years ago

3.9.23

6 years ago

3.9.22

6 years ago

3.9.21

6 years ago

3.9.20

6 years ago

3.9.19

6 years ago

3.9.18

6 years ago

3.9.17

6 years ago

3.9.16

6 years ago

3.9.15

6 years ago

3.9.14

6 years ago

3.9.13

6 years ago

3.9.12

6 years ago

3.9.9

6 years ago

3.9.8

6 years ago

3.9.7

6 years ago

3.9.6

6 years ago

3.9.5

6 years ago

3.9.4

6 years ago

3.9.3

6 years ago

3.9.2

6 years ago

3.9.0

6 years ago

3.8.3

6 years ago

3.8.2

6 years ago

3.8.1

6 years ago

3.8.0

6 years ago

3.4.0

6 years ago

3.3.5

6 years ago

3.3.4

6 years ago

3.3.3

6 years ago

3.3.2

6 years ago

3.3.1

6 years ago

3.3.0

6 years ago

3.2.0

7 years ago

3.1.0

7 years ago

3.0.5

7 years ago

3.0.4

7 years ago

3.0.3

7 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.0.3

7 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.3.2

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago