UNPKG

ih-portal

Version:

A project for connecting interaction hub services with catalyst-ui components

13 lines (9 loc) 242 B
export default function mapObj(obj, predicate) { const keys = Object.keys(obj); const { length } = keys; let result = []; for (let i = 0; i < length; ++i) { result.push(predicate(obj[keys[i]], keys[i])); } return result; }