"undefined is not a function"? — It is now!
Switch branches/tags
Nothing to show
Clone or download
Latest commit edaca16 Mar 10, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Initial commit Mar 4, 2018
.babelrc Initial commit Mar 4, 2018
.gitignore Initial commit Mar 4, 2018
.npmignore Initial commit Mar 4, 2018
.travis.yml feat: add travis ci config Mar 10, 2018
LICENSE.md feat: add MIT license Mar 10, 2018
README.md docs(README): add npm badge Mar 10, 2018
package-lock.json Initial commit Mar 4, 2018
package.json Initial commit Mar 4, 2018

README.md

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

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