Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
assets
/
js
/
data
/
utils
:
has-in-state.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * External dependencies */ import { has } from 'lodash'; /** * Utility for returning whether the given path exists in the state. * * @param {Object} state The state being checked * @param {Array} path The path to check * * @return {boolean} True means this exists in the state. */ export default function hasInState( state, path ) { return has( state, path ); }