dfilatov/jspath — pull request #13 by andrewblond (2012-11-22 08:32:48+00:00)
Title: set method

Set the value of the field object at the specified location path.

### Examples
```javascript
// set Bender for author to all books
JSPath.set('.books.author.name', 'Bender', doc);

// set "Kill all humans!" for title to all books
JSPath.set('.books.title', 'Kill all humans!', doc);

// find all books author names
JSPath.apply('.books.author.name', doc);
/*['Bender', 'Bender', 'Bender', 'Bender'] */

// find all books titles
JSPath.apply('.books.title', doc);
/*['Kill all humans!', 'Kill all humans!', 'Kill all humans!', 'Kill all humans!'] */

```