Created
February 6, 2018 17:01
-
-
Save telingadigital/bc22e4605be6594b89421c026ca69ad6 to your computer and use it in GitHub Desktop.
Remove String Only in array Javascript
This file contains hidden or 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
function removeString(arr){ | |
for(var i = arr.length-1; i--;){ | |
if (typeof arr[i] === 'string') | |
arr.splice(i, 1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment