UNPKG

ember-cli-ajh

Version:

Command line tool for developing ambitious ember.js apps

15 lines (12 loc) 308 B
var isObject = require('../lang/isObject'); /** * Converts `value` to an object if it's not one. * * @private * @param {*} value The value to process. * @returns {Object} Returns the object. */ function toObject(value) { return isObject(value) ? value : Object(value); } module.exports = toObject;