Object
Topairsin

_.toPairsIn(object)

Creates an array of own and inherited 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.

Example