UNPKG

twreporter-react

Version:

React-Redux site for The Reporter Foundation in Taiwan

19 lines (15 loc) 453 B
import isObject from './isObject.js'; /** Built-in value references. */ var objectCreate = Object.create; /** * The base implementation of `_.create` without support for assigning * properties to the created object. * * @private * @param {Object} prototype The object to inherit from. * @returns {Object} Returns the new object. */ function baseCreate(proto) { return isObject(proto) ? objectCreate(proto) : {}; } export default baseCreate;