utils-object
useful functions for manipulating objects.
Install via NPM
$ npm i @loadsmart/utils-object --save
Install via yarn
$ yarn add @loadsmart/utils-object
Usage
import React from 'react'
import { isNil } from '@loadsmart/utils-object'
export default ({ user }) => {
return <h1>{`Hello, ${isNil(user) ? 'guest' : user.name}`}</h1>
}