This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (C) 2015 Patrick G. All rights reserved. | |
// This code is governed by the BSD license found in the LICENSE file. | |
/*--- | |
info: arrayComparison reorders the elements of the array in reverse using Array.reverse | |
description: testing the comparison and reversing if middle element is non-numerical | |
---*/ | |
var arr1 = [2,4,"string",6,8]; | |
var arr1Copy = arr1.reverse(); |