MCPcopy
hub / github.com/parallel-js/parallel.js / factorial

Function factorial

test/specs/api.spec.js:355–357  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

353 it('should accept more than one requirement', () => {
354 return new Promise(done => {
355 function factorial(n) {
356 return n < 2 ? 1 : n * factorial(n - 1);
357 }
358
359 const p = new Parallel([1, 2, 3], {
360 evalPath: isNode ? undefined : 'lib/eval.js'

Callers 1

api.spec.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected