Sha256: b106675ef8c915952a6bbf6914859d8cf881a5cc520f73b8855e3f84ec6654e6

Contents?: true

Size: 616 Bytes

Versions: 24

Compression:

Stored size: 616 Bytes

Contents

//>>excludeStart("exclude", pragmas.exclude);
define([ "shoestring" ], function(){
//>>excludeEnd("exclude");

  /**
	 * Check for array membership.
	 *
	 * @param {object} needle The thing to find.
	 * @param {object} haystack The thing to find the needle in.
	 * @return {boolean}
	 * @this window
	 */
	shoestring.inArray = function( needle, haystack ){
		var isin = -1;
		for( var i = 0, il = haystack.length; i < il; i++ ){
			if( haystack.hasOwnProperty( i ) && haystack[ i ] === needle ){
				isin = i;
			}
		}
		return isin;
	};

//>>excludeStart("exclude", pragmas.exclude);
});
//>>excludeEnd("exclude");

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 node_modules/shoestring/src/core/inarray.js
trusty-cms-5.0.7 node_modules/shoestring/src/core/inarray.js
trusty-cms-5.0.6 node_modules/shoestring/src/core/inarray.js
trusty-cms-5.0.5 node_modules/shoestring/src/core/inarray.js
trusty-cms-5.0.4 node_modules/shoestring/src/core/inarray.js
trusty-cms-5.0.3 node_modules/shoestring/src/core/inarray.js
trusty-cms-5.0.2 node_modules/shoestring/src/core/inarray.js
trusty-cms-5.0.1 node_modules/shoestring/src/core/inarray.js
trusty-cms-4.3.5 node_modules/shoestring/src/core/inarray.js
trusty-cms-5.0.0 node_modules/shoestring/src/core/inarray.js
trusty-cms-4.3.4 node_modules/shoestring/src/core/inarray.js
trusty-cms-4.3.3 node_modules/shoestring/src/core/inarray.js
trusty-cms-4.3.2 node_modules/shoestring/src/core/inarray.js
trusty-cms-4.3.1 node_modules/shoestring/src/core/inarray.js
trusty-cms-4.3 node_modules/shoestring/src/core/inarray.js
trusty-cms-4.2.3 node_modules/shoestring/src/core/inarray.js
trusty-cms-4.2.2 node_modules/shoestring/src/core/inarray.js
trusty-cms-4.2.1 node_modules/shoestring/src/core/inarray.js
trusty-cms-4.2 node_modules/shoestring/src/core/inarray.js
trusty-cms-4.1.9 node_modules/shoestring/src/core/inarray.js