Learn ReactJS & React Native With Me
  • Home
  • React Native Series
  • React Js
  • Write for us
  • Animal Welfare
  • About Me
  • Contact
  • Home
  • React Native Series
  • React Js
  • Write for us
  • Animal Welfare
  • About Me
  • Contact
  • Facebook
  • Twitter
  • LinkedIn
  • Email
Learn ReactJS & React Native With Me

Code, Bugs, Pitfalls, Tricks of React Js & React Native

  • Home
  • React Native Series
  • React Js
  • Write for us
  • Animal Welfare
  • About Me
  • Contact

Browsing Tag

array

13 posts

how to compare two arrays in javascript – Code Example

  • Akash Mittal
  • August 30, 2022
In this article we will provide you code to compare two arrays in javascript. Arrays are sequential in nature. In order to compare them, we need to make sure that…
View Post

Create empty array in java – Code Example

  • Akash Mittal
  • August 30, 2022
To create an empty array in java, you can use = {} syntax or = new int[0]. But an empty array is useless because it can’t hold any value. If…
View Post
Es6 Array Limit First n Elements
  • JavaScript

    Es6 Array Limit First n Elements using Array.slice()

    • Teresia Wachira
    • September 5, 2022
    Introduction We get the first n elements easily using the Array.slice() method. The slice() method returns selected elements in an array, as a new array but does not modify the…
    View Post
    javascript remove element from ghost array
    • JavaScript

      Javascript remove element from Ghost array

      • Akash Mittal
      • September 5, 2022
      In this article we will learn how to remove element from javascript ghost array. I will also show you the way to remove any element from non-ghost arrays. First of…
      View Post
      jumbled javascript array to string no commas
      • JavaScript

        Convert a jumbled javascript array to string without commas

        • Akash Mittal
        • September 5, 2022
        Are you getting the requirements of converting a javascript array to string without commas? If yes, then this article is for you. Generally when we convert array to string we…
        View Post
        javascript random array element no repeat
        • JavaScript

          Access random array element in javascript without repeating

          • Akash Mittal
          • September 5, 2022
          In this article we will show you the code to access javascript random array element, no repeat. Without further delay, let’s check out the code –     Tweet this to help…
          View Post
          How to find the longest string in javascript array?
          • JavaScript

            How to find the longest string in javascript array?

            • Akash Mittal
            • September 5, 2022
            To find the longest string in javascript array, we need to loop through all the elements and compare their lengths. The one which has the maximum length is the longest.…
            View Post
            How to remove duplicate objects from array in JavaScript?
            • JavaScript

              How to remove duplicate objects from array in JavaScript?

              • Akash Mittal
              • September 5, 2022
              (Jump to Code | Demo) In order to find the duplicates, we need to compare two values. In case of numbers and strings, this is very simple. But when it…
              View Post
              How to remove duplicate elements from array in JavaScript?
              • JavaScript

                How to remove duplicate elements from array in JavaScript?

                • Akash Mittal
                • September 5, 2022
                In this article we are going to create a function to remove duplicate elements from javascript array. Our function will be able to handle strings and numbers inside the provided…
                View Post
                How to remove first element from array in javascript
                • JavaScript

                  How to remove first element from array in JavaScript?

                  • Akash Mittal
                  • September 5, 2022
                  When we remove an element from array, a null or undefined remains in its place. One of the option is to use removeNullUndefinedEmptyFromArray() function to clean the array. But if…
                  View Post
                  remove null, undefine and empty values from array in javascript
                  • JavaScript

                    Remove null, undefined and empty values from array in JavaScript

                    • Akash Mittal
                    • September 5, 2022
                    In this article we are going to learn how to remove null, undefined and empty values from array in Javascript. We get null or undefined values in array when we…
                    View Post
                    combine and merge two javascript objects
                    • JavaScript

                      Combine two javascript objects – Code Example & Live Demo

                      • Akash Mittal
                      • September 5, 2022
                      (Jump to Code | Demo) We can combine and merge two javascript objects using triple dot (…) notation of ES6. This is a very handy feature as it allows to…
                      View Post
                      change position of element in array using javascript
                      • JavaScript

                        Change position of element in array using JavaScript code example

                        • Akash Mittal
                        • December 29, 2020
                        We can use splice() method to move an element of an array from one position to another in javascript. We will use latest coding principles of JS (ES6). Check the…
                        View Post

                        Learn ReactJS & React Native With Me
                        Copyright AkashMittal.com | Privacy Policy