python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
returning a value if a String includes the key
I have a JS Object Literal (logGroupMap) containing alarm names as keys, and their log groups as values. Alarm names are passed in with consistent names of varying length but with generated character...
dulongj
Votes: 0
Answers: 1
How to filter an object according to specification given in another object?
I want to filter out data from an object according to specification given in another object.
For example, consider the following BandAndAlbums object that holds raw data about 3 bands (Beatles, Aerosm...
Emman
Votes: 0
Answers: 4
Is there a way to programmatically determine that a function is actually an object in Javascript?
In Javascript, functions are objects. Yet typeof of a function returns function instead of object for ECMAScript compatibility reasons.
Is this function type actually some kind of wrapper for object t...
brentonstrine
Votes: 0
Answers: 1
Replacing switch statement with Object literal with booleans
I have this switch statement where a, b, c and d can be true or false, but only one of them is going to be true, and when one of them is true it returns X which is a variable. How can I replace this s...
Efrain Mejia
Votes: 0
Answers: 0