False Or Value
This module exports a function which can be used to return a passed value or return false. Useful for setting defaults.
var falseOrV = var options = aString: || 'Some default' aNumber: || 10 anObject: || a: 1 anArray: || 123
Notes:
- Returns 0, -0 and -n as passed.
- Does not handle empty multi-dimensional arrays.
- Does not handle objects with prototype methods or properties, but without enumerable properties.