consul/ui-v2/app/helpers/object-entries.js

11 lines
217 B
JavaScript

import { helper } from '@ember/component/helper';
export function objectEntries([obj = {}] /*, hash*/) {
if (obj == null) {
return [];
}
return Object.entries(obj);
}
export default helper(objectEntries);