Return a new object of key value pairs given an array of attributes.
An array of attributes
An object of key value pairs, or key -> true for boolean attributes
Return a new object of key value pairs given an array of attributes.