Dev Null

A JS function and API inspired by /dev/null that will throw away whatever you send it and return null.

Function usage

@stevekrouse.devNull("useless  data")

API Usage[%22useless%20data%22]


Honestly I don't know why you'd use this function. I just made it as a joke to link to it from I guess you could also use it a joke to send data you want to call attention to the fact that you very much don't care about it, ie I really don't care about the price of bitcoin:

@stevekrouse.devNull(await  @stevekrouse.currency("usd", "btc"))
export function devNull(...args: any[]) {
return null;
👆 This is a val. Vals are TypeScript snippets of code, written in the browser and run on our servers. Create scheduled functions, email yourself, and persist small pieces of data — all from the browser.
stevekrouse avatar

this is a terrible no good val that nobody should ever use - shame on you for writing it