UNPKG

sails-auth

Version:

Passport-based User Authentication system for sails.js applications.

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;