Do forEach on a Javascript to deep cloned array - Javascript jQuery

Javascript examples for jQuery:Array

Description

Do forEach on a Javascript to deep cloned array

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-compat-git.js"></script> 
      <script type="text/javascript">
    $(window).on('load', function() {
var numbs = $.extend(true, {}, [1,2,3]);
for (var numb in numbs){/* www. j  a v a  2 s.c  o  m*/
    console.log(numbs[numb]);
}
    });

      </script> 
   </head> 
   <body>  
   </body>
</html>

Related Tutorials