Function
Static Public Summary | ||
public |
isPalindrome(a: ArrayLike): * Tests whether an array-like is a palindrome. |
Static Private Summary | ||
private |
_isPalindrome(a: ArrayLike, i: number, j: number): * Tests whether a slice of an array-like is a palindrome. |
Static Public
public isPalindrome(a: ArrayLike): * source
import isPalindrome from '@array-like/is-palindrome/src/isPalindrome.js'
Tests whether an array-like is a palindrome.
Params:
Name | Type | Attribute | Description |
a | ArrayLike | Array-like input |
Return:
* | boolean True if the input is a palindrome. |
Static Private
private _isPalindrome(a: ArrayLike, i: number, j: number): * source
import _isPalindrome from '@array-like/is-palindrome/src/_isPalindrome.js'
Tests whether a slice of an array-like is a palindrome.
Return:
* | boolean True if the input slice is a palindrome. |