hughsk/flat — pull request #1 by ericchaves (2012-11-20 21:28:03+00:00)
Title: Object types like date or null were not properly flattened

Hi @hughs,

I noticed that Flat was not properly flattening attributes of types Null and Date because it uses the *typeof* operator to check if an attribute is a regular object or a primitive type. With this small fix it now handle those types properly.

Best regards,

Eric