undefined-is-a-function

by donavon

"undefined is not a function"? β€” It is now!

204 Stars 5 Forks Last release: Not found MIT License 10 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

"undefined is not a function"? β€” It is now!

Build Status npm version

A while ago a tweeted that I had fixed the internet.

image

Well, I guess that wasn't entirely accurate. I gave people the ability for them to fix the internet, but not everyone was on board.

So today, I'm making it even easier for you to fix your little corner of the interwebs.

Get the code (i.e. fix the internet)

All you have to do is this:

$ npm i --save undefined-is-a-function

(or if you like yarn)

shell
$ yarn add undefined-is-a-function

Then in your code:

import { undefined } from 'undefined-is-a-function';

Fixed!

undefined
is now a function.

So I state again: πŸŽ‰πŸŽ‰πŸŽ‰ I fixed the internet! πŸŽ‰πŸŽ‰πŸŽ‰

(or at least until the next time)

Tests

Yes, there are tests. And they all pass.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.