parse-css-dimension

Parse a CSS dimension (i.e., number, length, percentage) into a JavaScript object.

object-length

Get the length of an object's properties, excluding prototype properties. Works with dontEnum bugs.