We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88b0b40 commit fd6dd45Copy full SHA for fd6dd45
packages/svelte/src/store/index.js
@@ -1,4 +1,5 @@
1
import { noop, run_all } from '../internal/shared/utils.js';
2
+import { safe_not_equal } from '../internal/client/reactivity/equality.js';
3
import { subscribe_to_store } from './utils.js';
4
5
/**
@@ -21,15 +22,6 @@ export function readable(value, start) {
21
22
};
23
}
24
-/**
25
- * @param {any} a
26
- * @param {any} b
27
- * @returns {boolean}
28
- */
29
-function safe_not_equal(a, b) {
30
- return a != a ? b == b : a !== b || (a && typeof a === 'object') || typeof a === 'function';
31
-}
32
-
33
34
* Create a `Writable` store that allows both updating and reading by subscription.
35
*
0 commit comments