undefined
and a non-initialized value. arguments
And of course you can explicitly check keys of objects, including parameters that are going to be destructured. Array.isArray
returns true without it being instantiated using an array constructor or other array-returning function, the Array prototype, or square-bracket syntax? Array.from({"0": 1, "1: 2})
Array.from({length: 2}, (i) => i + 1)
[1, 2]
[...Object.values{"a": 1, "b": 2})]
... Object.
namespace, for example. Object.prototype.toString
always returns the result of Array.prototype.join
per spec, afaik, so for an empty array it's the empty string.
Instead of punishing people for seeking medical care (or plainly requiring it), it would be preferable to have a robust protocol for rejecting patients that do not require care, whether at the hospital or before the ambulance ride.
For this, people would need to want medical care be a humanitarian right and basic pillar of a functioning society, not a business or a bureaucratic system to perform a selection process decreasing the life expectancy of less-affluent people.
Ironically, when there is free medical care and universal insurance, there are also perverse incentives. For example unneeded expensive procedures, prescribing patented, newer drugs where cheaper ones would work, providing ineffective or even detrimental services, etc.
But humanitarian values are out of fashion, because they were never achieved globally.
So the only right people care about increasingly is their right to own property.