Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (13 sloc) 429 Bytes
import objectFreeze from "../objectFreeze";
import ObjectEntriesFunction from "./ObjectEntriesFunction";
* Object.entries wrapper.
* @param target - Target object.
* @returns Array of tuples ([key, value]) of the given object.
export const objectEntries: ObjectEntriesFunction = target =>
Object.entries(target).map(([key, value]) => [key, objectFreeze(value)])
export default objectEntries;
You can’t perform that action at this time.