{"action":"closed","issue":{"url":"https://api.github.com/repos/lodash/lodash/issues/1174","labels_url":"https://api.github.com/repos/lodash/lodash/issues/1174/labels{/name}","comments_url":"https://api.github.com/repos/lodash/lodash/issues/1174/comments","events_url":"https://api.github.com/repos/lodash/lodash/issues/1174/events","html_url":"https://github.com/lodash/lodash/issues/1174","id":71952060,"number":1174,"title":"_.isBlank(str)","user":{"login":"dwoldrich","id":1103964,"avatar_url":"https://avatars.githubusercontent.com/u/1103964?v=3","gravatar_id":"","url":"https://api.github.com/users/dwoldrich","html_url":"https://github.com/dwoldrich","followers_url":"https://api.github.com/users/dwoldrich/followers","following_url":"https://api.github.com/users/dwoldrich/following{/other_user}","gists_url":"https://api.github.com/users/dwoldrich/gists{/gist_id}","starred_url":"https://api.github.com/users/dwoldrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwoldrich/subscriptions","organizations_url":"https://api.github.com/users/dwoldrich/orgs","repos_url":"https://api.github.com/users/dwoldrich/repos","events_url":"https://api.github.com/users/dwoldrich/events{/privacy}","received_events_url":"https://api.github.com/users/dwoldrich/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lodash/lodash/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/lodash/lodash/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-29T18:29:53Z","updated_at":"2015-04-30T01:02:50Z","closed_at":"2015-04-30T01:02:50Z","body":"Hi!  Thanks for helping me put bread on my family's table!\r\n\r\nAnyhow, I found the isBlank() semantics pretty useful back in the day when doing Java coding with Commons Lang.  I looked for it today in lodash and when I found it wasn't there I rolled my own with `_.isString()` and `_.trim()` and `length > 0`.\r\n\r\nHere's the function I'm thinking about:\r\n\r\nhttps://commons.apache.org/proper/commons-lang/javadocs/api-release/org/apache/commons/lang3/StringUtils.html#isBlank%28java.lang.CharSequence%29\r\n\r\nPerhaps our take on `_.isBlank()` could fallback to `_.isEmpty()` semantics for non-String types."}}