Tag: arrays

6551 How do I remove a particular element from an array in JavaScript? 2011-04-23T22:17:18.487

3966 For-each over an array in JavaScript? 2012-02-17T13:51:48.683

3366 How do I check if an array includes an object in JavaScript? 2008-10-25T22:14:40.913

3112 Create ArrayList from array 2008-10-01T14:38:32.667

2896 How to append something to an array? 2008-12-09T00:20:05.937

2550 Loop through an array in JavaScript 2010-06-10T00:04:27.170

2342 Checking if a key exists in a JavaScript object? 2009-07-08T13:21:32.833

2277 Check if object is an array? 2011-01-23T18:53:04.733

2256 How to insert an item into an array at a specific index? 2009-02-25T14:29:30.877

2199 How do I empty an array in JavaScript? 2009-08-05T09:08:39.340

2075 PHP: Delete an element from an array 2008-12-15T20:28:55.307

1998 Sort array of objects by string property value 2009-07-15T03:17:47.440

1954 How to determine whether an array contains a particular value in Java? 2009-07-15T00:03:21.820

1731 How do I declare and initialize an array in Java? 2009-07-29T14:22:27.243

1631 What's the simplest way to print a Java array? 2009-01-03T20:39:39.440

1595 Why is using "for...in" with array iteration a bad idea? 2009-02-01T09:46:38.510

1559 How do you check if a variable is an array in JavaScript? 2009-04-20T09:02:59.553

1469 With arrays, why is it the case that a[5] == 5[a]? 2008-12-19T17:01:33.177

1443 Copy array by value 2011-09-20T13:38:08.950

1247 What is the best way to add options to a select from as a JS object with jQuery? 2008-10-04T20:58:46.400

1226 How can I add new array elements at the beginning of an array in Javascript? 2011-11-10T00:35:22.150

1225 Deleting array elements in JavaScript - delete vs splice 2009-02-01T11:11:16.420

1205 Determine whether an array contains a value 2009-07-25T08:18:57.813

1190 Find object by id in an array of JavaScript objects 2011-09-09T15:42:29.343

1177 How can I concatenate two arrays in Java? 2008-09-17T06:14:23.763

1172 How do you convert a byte array to a hexadecimal string, and vice versa? 2008-11-22T10:03:13.003

1145 Check if a value exists in an array in Ruby 2009-12-31T17:49:03.317

1116 Short circuit Array.forEach like calling break 2010-04-14T21:57:31.967

1075 Loop through an array of strings in Bash? 2012-01-16T13:21:16.343

1072 Sorting an array of JavaScript objects 2009-06-11T03:59:54.460

1041 How to merge two arrays in JavaScript and de-duplicate items 2009-10-18T08:34:57.023

1001 "Notice: Undefined variable", "Notice: Undefined index", and "Notice: Undefined offset" using PHP 2010-11-23T21:26:54.170

978 Convert ArrayList<String> to String[] array 2011-03-21T05:57:59.193

965 How can I create a two dimensional array in JavaScript? 2009-06-08T18:24:54.130

965 Remove duplicate values from JS array 2012-02-10T14:53:22.713

941 How to randomize (shuffle) a JavaScript array? 2010-03-15T22:37:11.700

929 How to create a generic array in Java? 2009-02-09T17:30:44.417

928 Sort Multi-dimensional Array by Value 2010-04-23T13:54:26.653

915 Get all unique values in a JavaScript array (remove duplicates) 2009-12-25T04:28:23.840

899 Get the first element of an array 2009-12-17T12:26:44.363

840 Converting 'ArrayList<String> to 'String[]' in Java 2010-10-28T11:30:53.847

829 How to initialize all members of an array to the same value? 2008-10-14T13:13:40.783

800 Converting array to list in Java 2010-04-09T12:20:20.827

784 How to convert UTF-8 byte[] to string? 2009-06-16T18:47:00.180

781 Merge/flatten an array of arrays in JavaScript? 2012-06-02T18:53:46.603

775 Get the last item in an array 2010-07-09T19:45:06.567

774 Remove empty elements from an array in Javascript 2008-11-11T15:48:54.113

765 How do I determine the size of my array in C? 2008-09-01T06:49:22.723

746 How to extend an existing JavaScript array with another array, without creating a new array 2009-09-03T15:27:30.933

731 What does %w(array) mean? 2009-08-13T21:23:47.170

721 How to compare arrays in JavaScript? 2011-10-20T14:27:57.077

718 What’s the difference between "Array()" and "[]" while declaring a JavaScript array? 2009-05-31T11:23:32.597

709 PHP array delete by value (not key) 2011-08-29T00:44:04.337

708 Best way to find if an item is in a JavaScript array? 2008-09-27T15:41:12.783

707 Push array items into another array 2010-11-11T15:33:18.830

692 How to remove item from array by value? 2010-10-17T17:43:34.540

689 How to check if PHP array is associative or sequential? 2008-10-06T07:01:13.140

681 Access / process (nested) objects, arrays or JSON 2012-08-12T13:02:12.127

674 Create a JavaScript array containing 1...N 2010-09-19T17:34:17.737

673 Get first key in a (possibly) associative array? 2009-06-22T18:13:59.147

665 Javascript call() & apply() vs bind()? 2013-03-16T21:40:08.157

654 Is arr.__len__() the preferred way to get the length of an array in Python? 2009-02-05T21:26:47.217

652 Remove empty array elements 2010-09-06T21:06:57.727

644 Get random item from JavaScript array 2011-05-06T17:47:45.747

641 swift for loop: for index, element in array? 2014-06-04T03:19:21.913

609 Convert PHP object to associative array 2010-12-03T12:34:16.763

605 How to Convert a Java 8 Stream to an Array? 2014-04-15T09:00:13.977

591 Add a new element to an array without specifying the index in Bash 2009-12-23T08:59:32.787

589 How do I convert struct System.Byte byte[] to a System.IO.Stream object in C#? 2011-01-19T14:08:58.357

588 How to convert an Array to a Set in Java 2010-06-17T18:23:56.460

587 How to sort an array of integers correctly 2009-06-30T10:43:11.510

562 Preferred method to store PHP arrays (json_encode vs serialize) 2009-04-29T20:09:43.560

559 How to remove the first Item from a list? 2010-12-13T07:38:38.647

536 How do I remove objects from a javascript associative array? 2008-12-06T06:44:05.723

529 Get JavaScript object from array of objects by value of property 2012-12-20T01:57:14.967

527 How to sum array of numbers in Ruby? 2009-10-08T16:04:57.870

527 All possible array initialization syntaxes 2011-04-15T14:27:05.473

523 Any way to declare an array in-line? 2009-07-20T14:44:51.117

520 Can I bind an array to an IN() condition? 2009-05-28T11:17:57.673

518 Does JavaScript have a method like "range()" to generate a range within the supplied bounds? 2010-10-09T02:37:29.520

512 How to get the difference between two arrays in Javascript? 2009-07-27T10:38:50.100

505 How do I check in JavaScript if a value exists at a certain array index? 2010-04-20T03:41:50.400

504 How do I pick randomly from an array? 2010-08-14T05:26:49.963

500 Fastest way to duplicate an array in JavaScript - slice vs. 'for' loop 2010-10-20T13:43:55.773

493 Array versus List<T>: When to use which? 2009-01-12T08:08:33.237

493 How do I store an array in localStorage? 2010-07-28T21:14:27.207

486 How to find the sum of an array of numbers 2009-08-04T22:29:40.700

482 How to convert List<Integer> to int[] in Java? 2009-06-06T20:20:18.270

465 Split string into an array in Bash 2012-05-14T15:15:58.363

456 How to find if an array contains a specific string in JavaScript/jQuery? 2011-05-24T20:31:35.483

455 Comparing two byte arrays in .NET 2008-09-04T07:33:25.387

451 Is there a function to make a copy of a PHP array to another? 2009-10-07T16:11:50.393

447 Convert list to array in Java 2012-03-05T19:37:28.803

443 How to convert Java String into byte[]? 2013-09-02T10:40:20.180

441 Most efficient way to create a zero filled JavaScript array? 2009-08-18T18:11:29.190

439 How do I use arrays in C++? 2011-01-26T22:14:35.787

430 C pointer to array/array of pointers disambiguation 2009-05-13T18:35:12.650

430 How do I declare a 2d array in C++ using new? 2009-06-01T20:42:20.013

426 Sort array of objects by object fields 2010-11-26T03:50:56.690