jquery - iterate through array with check if key starting with text

other
voted: 0
vote
foreach array checkin key

Iterate array with jquery and check if key starting with text

for (key in config) {
        if (config.hasOwnProperty(key)) {
            if (key.slice(0, 5) === "step_") {
               console.log(key);
            }
        }
}
working url: not entered
version: not entered
Leave a Comment:
Characters left:
No comments yet.