Need help with undefined-is-a-function?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

donavon
224 Stars 5 Forks MIT License 10 Commits 3 Opened issues

Description

"undefined is not a function"? — It is now!

Services available

!
?

Need anything else?

Contributors list

# 181,195
Telegra...
bot-fra...
minific...
clean-c...
3 commits
# 229,774
HTML
marione...
reposit...
Git
1 commit
# 34,902
Svelte
GraphQL
axios
reactjs
1 commit

"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.