Function stripNull

Recursively strips null from source parameter.

  • Literals string, numbers etc will be returned as-is.
  • Literal null will return undefined
  • Arrays with null be replace element with undefined, i.e. the length of the array is not modified.
  • Object values with null will be removed, i.e. hasOwnProperty(..) will return false.

Source value

A copy of the source parameter with any null stripped