Skip to content

Commit

Permalink
Added korbit-tutorial-2df972aff2020d81/doWork.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodBoyDigital committed May 8, 2024
1 parent 78824e4 commit 2dd4ba2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions korbit-tutorial-2df972aff2020d81/doWork.ts
@@ -0,0 +1,10 @@
import { processWork } from 'korbit-tutorial-2df972aff2020d81/util.js';

function doSomeWork(workToBeDone: Array<string>) {
let finishedWork = []
workToBeDone.forEach((workItem) => finishedWork.push(processWork(workItem)))
return finishedWork
}

let workToBeDone: Array<string> = ["these", "are", "some", "words", null]
console.log(doSomeWork(workToBeDone))

0 comments on commit 2dd4ba2

Please sign in to comment.