Closed danfo closed 6 years ago
This allows the creation of arrays with set (force: true).
This should probably be a semver major bump, in case anyone is relying on the past behaviour:
ptr.set(data, '#/names/0', 'Dan', true);
Used to result in: { names: { 0: 'Dan' } }
{ names: { 0: 'Dan' } }
It now results in: { names: ['Dan'] }
{ names: ['Dan'] }
This allows the creation of arrays with set (force: true).
This should probably be a semver major bump, in case anyone is relying on the past behaviour:
ptr.set(data, '#/names/0', 'Dan', true);
Used to result in:
{ names: { 0: 'Dan' } }
It now results in:
{ names: ['Dan'] }