{"action":"created","issue":{"url":"https://api.github.com/repos/nodeschool/discussions/issues/1284","labels_url":"https://api.github.com/repos/nodeschool/discussions/issues/1284/labels{/name}","comments_url":"https://api.github.com/repos/nodeschool/discussions/issues/1284/comments","events_url":"https://api.github.com/repos/nodeschool/discussions/issues/1284/events","html_url":"https://github.com/nodeschool/discussions/issues/1284","id":93040582,"number":1284,"title":"Puzzling Over Filtered-LS (learnyounode)","user":{"login":"grampers","id":3188245,"avatar_url":"https://avatars.githubusercontent.com/u/3188245?v=3","gravatar_id":"","url":"https://api.github.com/users/grampers","html_url":"https://github.com/grampers","followers_url":"https://api.github.com/users/grampers/followers","following_url":"https://api.github.com/users/grampers/following{/other_user}","gists_url":"https://api.github.com/users/grampers/gists{/gist_id}","starred_url":"https://api.github.com/users/grampers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grampers/subscriptions","organizations_url":"https://api.github.com/users/grampers/orgs","repos_url":"https://api.github.com/users/grampers/repos","events_url":"https://api.github.com/users/grampers/events{/privacy}","received_events_url":"https://api.github.com/users/grampers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-04T19:26:16Z","updated_at":"2015-07-04T19:31:04Z","closed_at":null,"body":"I have a solution that works with node but won't verify.  Appreciate a look and comments.\r\n\r\nMy 'solution'\r\nvar fs = require('fs');\r\nvar path = require('path');\r\nfunction filter_by_type(item){\r\nif (path.extname(item) === ',' + process.argv[3]{\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nodeschool/discussions/issues/comments/118544748","html_url":"https://github.com/nodeschool/discussions/issues/1284#issuecomment-118544748","issue_url":"https://api.github.com/repos/nodeschool/discussions/issues/1284","id":118544748,"user":{"login":"grampers","id":3188245,"avatar_url":"https://avatars.githubusercontent.com/u/3188245?v=3","gravatar_id":"","url":"https://api.github.com/users/grampers","html_url":"https://github.com/grampers","followers_url":"https://api.github.com/users/grampers/followers","following_url":"https://api.github.com/users/grampers/following{/other_user}","gists_url":"https://api.github.com/users/grampers/gists{/gist_id}","starred_url":"https://api.github.com/users/grampers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grampers/subscriptions","organizations_url":"https://api.github.com/users/grampers/orgs","repos_url":"https://api.github.com/users/grampers/repos","events_url":"https://api.github.com/users/grampers/events{/privacy}","received_events_url":"https://api.github.com/users/grampers/received_events","type":"User","site_admin":false},"created_at":"2015-07-04T19:31:04Z","updated_at":"2015-07-04T19:31:04Z","body":"Sorry - I'll try again:\r\nMy 'solution'\r\nvar fs = require('fs');\r\nvar path = require('path');\r\nfunction filter_by_type(item){\r\nif (path.extname(item) === '.\r\n' + process.argv[3]{\r\nreturn item;\r\n}\r\nfs.readdir(process.argv[2],function(err,list){\r\nif (err) throw err;\r\nconsole.log(list.filter(filter_by_type));\r\n});\r\nThe errors:    \"[ 'CHANGELOG.md', 'LICENCE.md', 'README.md' ]\" !=    \"CHANGELOG.md\"                     \r\n   \"\"                                  !=    \"LICENCE.md\"                       \r\n                                       !=   "}}