Handle sorting with undefined values
All checks were successful
Build / Publish Docs (push) Successful in 47s
Build / Build NPM Project (push) Successful in 1m4s
Build / Tag Version (push) Successful in 10s

This commit is contained in:
2025-12-13 00:27:47 -05:00
parent 49959f3060
commit 3048b74b2f
3 changed files with 8 additions and 1 deletions

View File

@@ -62,6 +62,11 @@ describe('Object utilities', () => {
dotNotation(obj, 'd.e.f', 5);
expect(obj.d.e.f).toBe(5);
});
it('undefined', () => {
const obj: any = {a: 1};
const resp = dotNotation(obj, 'a.b');
expect(resp).toBe(undefined);
})
});
describe('encodeQuery', () => {