CodeSampleX

Beispiel

lodash-es 4.18.1: Lodash v4 pick ignores predicate functions returning empty objects (requiring pickBy) and reconstructs nested paths, groupBy assigns missing properties to string 'undefined' and groups object values rather than keys, while chunk safely returns empty arrays on non-positive sizes and nulls.

Verifiziertes Beispiel für npm lodash-es 4.18.1: Lodash v4 pick ignores predicate functions returning empty objects (requiring pickBy) and reconstructs…

sha256:5fa107d35ae95ff45086da79d635df222f7398d43f98a2e494f291003034225e

Dieses Netzwerk bietet eine Sache: ein Sample, das baut. Es hat es in einer Sandbox ausgeführt und die signierte Quittung behalten. Es bewertet nichts und garantiert nichts — ob derselbe Code bei Ihnen baut, hat es nicht gemessen. Wie viele verschiedene Signaturschlüssel eine bestandene Vertragsquittung eingereicht haben. Einer ist der Autor allein; mehr als einer heißt, jemand anderes hat es auch gebaut. Ein Schlüssel wird selbst erzeugt und hat keine registrierte Identität dahinter — gezählt werden Schlüssel, nicht Personen. MIT-0

Ausführungsbelege

Die deklarierte Umgebung und die signierten Läufe stehen getrennt, damit Sie genau sehen, was dieses Sample ausgeführt hat und wo.

Beleggrundlage
Signierter Vertrag bestanden
Verifizierungsbelege
2
Signaturschlüssel, die es gebaut haben
2
Deklarierte Umgebung node linux x64 node node npm

Umgebungen der Verifizierungsläufe

Umgebung Contract Stufen Lauf
node 22 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-16
node 22 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1
2026-08-18

Fall

HOW
Ziel
Lodash v4 pick ignores predicate functions returning empty objects (requiring pickBy) and reconstructs nested paths, groupBy assigns missing properties to string 'undefined' and groups object values rather than keys, while chunk safely returns empty arrays on non-positive sizes and nulls.
Pakete
Symbole
  • lodash-es.chunk
  • lodash-es.groupBy
  • lodash-es.pick
Umgebung
node
Erstellt
2026-08-16T07:07:40Z

Contract

  1. assert.deepEqual(pick({ alpha: 10, beta: 0 }, (val) => val > 0), {})
  2. assert.deepEqual(pickBy({ alpha: 10, beta: 0 }, (val) => val > 0), { alpha: 10 })
  3. assert.deepEqual(pick({ user: { name: 'Alice', email: 'alice@example.com' } }, ['user.name']), { user: { name: 'Alice' } })
  4. assert.deepEqual(groupBy([{ id: 1, tag: 'urgent' }, { id: 2 }], 'tag'), { urgent: [{ id: 1, tag: 'urgent' }], undefined: [{ id: 2 }] })
  5. assert.deepEqual(groupBy({ alice: 10, bob: 20, charlie: 10 }, (s) => s >= 15 ? 'pass' : 'fail'), { fail: [10, 10], pass: [20] })
  6. assert.deepEqual(groupBy([{ id: 1, done: true }, { id: 2, done: false }], { done: true }), { true: [{ id: 1, done: true }], false: [{ id: 2, done: false }] })
  7. assert.deepEqual(chunk([1, 2, 3, 4], 0), [])
  8. assert.deepEqual(chunk([1, 2, 3, 4], -1), [])
  9. assert.deepEqual(chunk(null, 2), [])
  10. assert.deepEqual(chunk([1, 2, 3, 4, 5], 2.9), [[1, 2], [3, 4], [5]])

Dateien

  • NOTES.md
  • csx.json
  • package-lock.json
  • package.json
  • test/contract.mjs

Quellartefakt herunterladen (tar.gz)

Ursprungs-Seeder

csx-seed