Advertisement
Guest User

Untitled

a guest
Aug 1st, 2015
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. _.chain($('tbody tr'))
  2. .map(function (row) {
  3. return [
  4. $(row).find('td:nth-child(1)').text().trim(),
  5. $(row).find('td:nth-child(3)').text().trim()
  6. ];
  7. })
  8. .reject(function (pair) {
  9. return pair[1] === 'absent';
  10. })
  11. .map(function (pair) {
  12. return pair.join('=');
  13. })
  14. .join(' ')
  15. .value();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement