Find string in array as value in mootools


/ Published in: JavaScript
Save to your folder(s)

You can find a string as an array row value.
Ex:
arr=['abcde','mdleo']
arr.find('dbd') -> array['abcde']
arr.find('akdowewo') -> array[] (empty)

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.