question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keyv.getMany - when all items are returned as `undefined` please return array of `undefined` instead of []

See original GitHub issue

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I’m always frustrated when […] Currently when getMany() returns all undefined it then gives just a blank array []. Instead it should give an array of undefined. Example:

['undefined', 'undefined', 'undefined']

@trevor-scheer - would love any feedback on this as we are looking to make this change.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jaredwraycommented, Aug 21, 2022
0reactions
trevor-scheercommented, Aug 18, 2022

Thanks! I’ll keep my eyes peeled for the release. Quick glance at the changes lgtm.

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript function returns undefined instead of array values?
The return statement is inside the event handler, and cannot be taken into account by the wrapping function (when the handler is executed ......
Read more >
Array map returning array of undefined values - JavaScript
It is returning an array with all undefined values. I am not sure why, any suggestions? let urls = [facultyBiosJSON, facultyDirectoryJSON]; ...
Read more >
Objects - The Modern JavaScript Tutorial
A property is a “key: value” pair, where key is a string (also called a ... Reading a non-existing property just returns undefined...
Read more >
Error: Undefined index: form_build_id in ajax_get_form()
The form outputs a list of nodes with a pager (jQuery Infinite Scroll plugin to append next results using the pager links) which...
Read more >
track array variable cannot read property push of undefined
I have a track variable which is declared as an array. When I push data to it, I get the error "Cannot read...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found