Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/donavon/undefined-is-a-function

"undefined is not a function"? — It is now!
https://github.com/donavon/undefined-is-a-function

undefined

Last synced: about 2 months ago
JSON representation

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

Lists

README

        

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

[![Build Status](https://travis-ci.org/donavon/undefined-is-a-function.svg?branch=master)](https://travis-ci.org/donavon/undefined-is-a-function) [![npm version](https://img.shields.io/npm/v/undefined-is-a-function.svg)](https://www.npmjs.com/package/undefined-is-a-function)

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

[![image](https://user-images.githubusercontent.com/887639/36948045-97e4b0ae-1fa2-11e8-819f-a6351ec3f031.png)](https://twitter.com/donavon/status/962025810432438273)

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:

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

(or if you like yarn)
```shell
$ yarn add undefined-is-a-function
```

Then in your code:

```js
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.