Making sure undefined is undefined


It’s a joke inspired by one colleague’s code.

Sometimes people write pretty useless code. This library will contain enough useless code to prevent you from writing it. How many other obiuous ways of checking do you know? Feel free to contribute.

How To Use

  1. Include library to your app

  2. Use a global variable – function isDefinitelyUndefined

isDefinitelyUndefined(undefined) === true;

isDefinitelyUndefined(‘lol’) === false;

Github责编内容来自:Github (源链) | 更多关于

本站遵循[CC BY-NC-SA 4.0]。如您有版权、意见投诉等问题,请通过eMail联系我们处理。
酷辣虫 » 前端开发 » Making sure undefined is undefined

喜欢 (0)or分享给?

专业 x 专注 x 聚合 x 分享 CC BY-NC-SA 4.0

使用声明 | 英豪名录