src/helper.js
function (needle, haystack, strict) {

            var found = false;

            strict = !!strict;

            $this.each(haystack, function (key) {
                /* jshint -W116 */
                if ((strict && haystack[key] === needle) || (!strict && haystack[key] == needle)) {
                    found = true;
                    return false;
                }
                /* jshint +W116 */
            });

            return found;
        }
function (needle, haystack, strict) {

            var found = false;

            strict = !!strict;

            $this.each(haystack, function (key) {
                /* jshint -W116 */
                if ((strict && haystack[key] === needle) || (!strict && haystack[key] == needle)) {
                    found = true;
                    return false;
                }
                /* jshint +W116 */
            });

            return found;
        }
function ( needle , haystack , strict ) { var found = false ; strict = ! ! strict ; $this . each ( haystack , function ( key ) { /* jshint -W116 */ if ( ( strict && haystack [ key ] === needle ) || ( ! strict && haystack [ key ] == needle ) ) { found = true ; return false ; } /* jshint +W116 */ } ) ; return found ; }
Finds whether a variable is a number or a numeric string

@link http://php.net/manual/ru/function.in-array.php
@link http://phpjs.org/functions/in_array/

@param needle
@param haystack
@param strict
@return {Boolean}
Finds whether a variable is a number or a numeric string