• JavaScript: Array-like objects

    What are array-like objects in JavaScript? Have you heard about array-like objects in JavaScript? If no, this is a good post to learn about them. Array-like objects are not a separate object type, th...

  • JavaScript: Convert arguments to Array

    How to convert arguments to an Array All JavaScript functions have a local variable called arguments, which is a list of arguments that were passed to the executing function. The first argument can b...

  • JavaScript: Array slice() with examples

    JavaScript array.slice() explained with examples .slice() is a method on all instances of arrays in JavaScript. It accepts two parameters - start index and end index - both of which are optional, and...

  • JavaScript: Get object size

    How to get the size of an object in JavaScript Arrays in JavaScript have a length property that gives you the number of items in an array. Objects on the other hand, don't have a length or size prope...

  • JavaScript: get the number of properties in an object without looping

    How to get the number of properties in a JavaScript object without looping Unlike arrays, JavaScript objects do not a have a length property which gives you the number of properties / items in an obj...

  • Python: Length or size of list, tuple, array

    How to get the length of a list or tuple or array in Python Let me clarify something at the beginning, by array, you probably mean list in Python. list is the equivalent of arrays in JavaScript or PH...