_.toPairs(object)
Creates an array of own enumerable string keyed-value pairs for object which can be consumed by _.fromPairs. If object is a map or set, its entries are returned.
Arguments
object (Object)
: The object to query.
Returns
(Array)
: Returns the key-value pairs.