1.3.4 • Published 2 years ago

nest-deep v1.3.4

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

nest-deep

Usage

import { nested, flatten } from 'nest-deep';

nested({
  'a.b': 1,
  'c.d[0][0]': 1,
  'c.d[1]': 5,
  'c.d[2]': 12,
});

flatten({
  a: {
    b: 1,
  },
  c: {
    d: [[1], 5, 12],
  },
});

Output

nested
{
  "a": {
    "b": 1
  },
  "c": {
    "d": [[1], 5, 12]
  }
}
flatten
{
  "a.b": 1,
  "c.d[0][0]": 1,
  "c.d[1]": 5,
  "c.d[2]": 12
}
1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

3 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.1.2

4 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago