1
0
mirror of https://github.com/dzeiocom/libs.git synced 2025-07-25 14:29:51 +00:00

fix: allow to use another type than an object when possible
Some checks are pending
CodeQL / Analyze (javascript) (push) Has started running

Signed-off-by: Avior <git@avior.me>
This commit is contained in:
2024-06-12 12:44:44 +02:00
parent 1dba6cf74e
commit 78f75ec7d1
4 changed files with 10 additions and 6 deletions

View File

@ -515,5 +515,9 @@ describe('object get', () => {
.toEqual({a: 'pouet'})
expect(objectGet({a: 'pouet'}, ''))
.toEqual({a: 'pouet'})
expect(objectGet('pouet', ''))
.toEqual('pouet')
expect(objectGet('pouet', []))
.toEqual('pouet')
})
})