Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _.chain($('tbody tr'))
- .map(function (row) {
- return [
- $(row).find('td:nth-child(1)').text().trim(),
- $(row).find('td:nth-child(3)').text().trim()
- ];
- })
- .reject(function (pair) {
- return pair[1] === 'absent';
- })
- .map(function (pair) {
- return pair.join('=');
- })
- .join(' ')
- .value();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement