06.07.2017 Views

Mastering JavaScript

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Data Structures and<br />

Manipulation<br />

Most of the time that you spend in programming, you do something to manipulate<br />

data. You process properties of data, derive conclusions based on the data, and<br />

change the nature of the data. In this chapter, we will take an exhaustive look at<br />

various data structures and data manipulation techniques in <strong>JavaScript</strong>. With the<br />

correct usage of these expressive constructs, your programs will be correct, concise,<br />

easy to read, and most probably faster. This will be explained with the help of the<br />

following topics:<br />

• Regular expressions<br />

• Exact match<br />

• Match from a class of characters<br />

• Repeated occurrences<br />

• Beginning and end<br />

• Backreferences<br />

• Greedy and lazy quantifiers<br />

• Arrays<br />

• Maps<br />

• Sets<br />

• A matter of style<br />

[ 75 ]<br />

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!