0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-29 08:32:05 +01:00

Merge pull request #2057 from sveltejs/gh-2056

Ensure derive behaves consistently.
This commit is contained in:
Rich Harris 2019-02-06 10:25:22 -05:00 committed by GitHub
commit e525b83d15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ export function derive(stores, fn) {
const single = !Array.isArray(stores);
if (single) stores = [stores];
const auto = fn.length === 1;
const auto = fn.length < 2;
let value = {};
return readable(set => {