How to use the is-equal function in is-equal

To help you get started, we’ve selected a few is-equal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github parabible / parabible-client / src / util / DataFlow.js View on Github external
set(prop, value) {
		if (!this._valid(prop, "set")) return this
		if (this._allowSetHooks.hasOwnProperty(prop) && !this._allowSetHooks[prop].reduce((a, f) => a && f(value), true)) {
			console.log("disallowed set")
			return this
		}

		this._wasEqual = true
		if (!isEqual(this._appData[prop], value)) {
			this._wasEqual = false
			this._appData[prop] = clone(value)
			//TODO: only do local storage stuff if we are the controlling window/tab
			localStorage.setItem(appData, JSON.stringify(this._appData))
		
			if (this._watchers.hasOwnProperty(prop))
				this._watchers[prop].forEach((c) => c.func(value))
		}
		return this
	},
	renotify(prop) {
github Chassis / Desktop / src / MachineItem.js View on Github external
eachObject( nextConfig.config, (value, key) => {
			if ( ! ( key in config ) || isEqual( value, config[key] ) ) {
				return;
			}

			changes[key] = value;
		});

is-equal

Are these two values conceptually equal?

MIT
Latest version published 6 months ago

Package Health Score

64 / 100
Full package analysis

Popular is-equal functions