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: 21 days ago
JSON representation
"undefined is not a function"? — It is now!
- Host: GitHub
- URL: https://github.com/donavon/undefined-is-a-function
- Owner: donavon
- License: mit
- Created: 2018-03-04T16:52:40.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-16T15:13:17.000Z (almost 4 years ago)
- Last Synced: 2024-10-12T08:11:25.438Z (about 1 month ago)
- Topics: undefined
- Language: JavaScript
- Homepage:
- Size: 43 KB
- Stars: 240
- Watchers: 4
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-dev-fun - undefined-is-a-function - "undefined is not a function"? — It is now! (JavaScript)
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.