you want to remove first element from an array without any loop. you can remove first element value from array without loop. I am explaining you, how to remove first element from an array. let’s see example :
<!DOCTYPE html>
<html>
<head>
<title>jQuery Remove First Element from Array? </title>
<script src="https://code.jquery.com/jquery-1.12.3.js"></script>
</head>
<body>
<script type="text/javascript">
var results = [ "webdeveloperindia.in","pakizacity.com","markdevelopments.com"];
results.shift();
console.log(results);
</script>
</body>
</html>
Result :
['pakizacity.com', 'markdevelopments.com']
Hello, Welcome to webdeveloperindia.in. I am a full-stack web developer. Email – [email protected] | Skype – azaruddin23. I have knowledge of PHP, Laravel, Magento 1/2, Codeigniter, WordPress, Joomla, Shopify, Git, Bitbuket, jQuery, Ajax, Javascript and ReactJS.