File "has-in-state.js"

Full Path: /home/vantageo/public_html/wp-admin-20240915120854/wp-includes-20240915121038/IXR/plugins/woocommerce/packages/woocommerce-blocks/assets/js/data/utils/has-in-state.js
File size: 379 bytes
MIME-type: text/x-java
Charset: utf-8

/**
 * 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 );
}