indexOf.js

From disqus.com, 7 Months ago, written in JavaScript, viewed 3 times. This paste is a reply to utils.js from disqus.com - view diff
URL https://pastebin.freepbx.org/view/3a4925d7 Embed
Download Paste or View Raw
  1. define('core/utils/array/indexOf',[],function () {
  2.     'use strict';
  3.  
  4.     return function indexOf(arr, val) {
  5.         for (var i = 0; i < arr.length; ++i) {
  6.             if (arr[i] === val)
  7.                 return i;
  8.         }
  9.  
  10.         return -1;
  11.     };
  12. });
  13.  
  14. // https://c.disquscdn.com/next/next-core/core/utils/array/indexOf.js
  15. // https://a.disquscdn.com/next/next-core/core/utils/array/indexOf.js

Replies to indexOf.js rss

Title Name Language When
array/some.js disqus.com javascript 7 Months ago.

Reply to "indexOf.js"

Here you can reply to the paste above