nire0510
2/29/2016 - 11:21 AM

Ember helper: pretty log of JSON object

Ember helper: pretty log of JSON object

import Ember from 'ember';

export function logJson(params/*, hash*/) {
  console.log(params[0].toJSON());
}

export default Ember.Helper.helper(logJson);