How to delete object property?
问题 According to the docs the delete operator should be able to delete properties from objects. I am trying to delete properties of an object that are "falsey". For example, I assumed the following would remove all of the falsey properties from testObj but it does not: var test = { Normal: "some string", // Not falsey, so should not be deleted False: false, Zero: 0, EmptyString: "", Null : null, Undef: undefined, NAN: NaN // Is NaN considered to be falsey? }; function isFalsey(param) { if (param