We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Before:
const source = { id: '123', who: { name: 'morewow' }, owner: { person: 'some guy' }, empty: [], nothing: {}, thisisnull: null, stuff: [ 'thing', 'dude' ], junk: undefined, nested: { useless: undefined } }
After: rundef(source, true, 1);
rundef(source, true, 1);
{ id: '123', who: { name: 'morewow' }, owner: { person: 'some guy' }, empty: [], nothing: {}, thisisnull: null, stuff: [ 'thing', 'dude' ], nested: {} }
After: const cleaned = rundef(source, false, 1);
const cleaned = rundef(source, false, 1);
{ id: '123', who: { name: 'morewow' }, owner: { person: 'some guy' }, empty: {}, // array became object nothing: {}, thisisnull: null, stuff: { '0': 'thing', '1': 'dude' }, // array became object nested: {} }
The text was updated successfully, but these errors were encountered:
Looks like line 10 of index.js checks for objects, which includes arrays, but doesn't treat arrays differently.
Sorry, something went wrong.
No branches or pull requests
Before:
After:
rundef(source, true, 1);
After:
const cleaned = rundef(source, false, 1);
The text was updated successfully, but these errors were encountered: