Title: Why does filterFilter take out null values when compared with '' in 1.2.x · Issue #5055 · angular/angular.js · GitHub
Open Graph Title: Why does filterFilter take out null values when compared with '' in 1.2.x · Issue #5055 · angular/angular.js
X Title: Why does filterFilter take out null values when compared with '' in 1.2.x · Issue #5055 · angular/angular.js
Description: example: var expr = { name: '', email: '', contact: ''}, array = [ { email: 'a@b.c', name: 'a', contact: null }, { email: 'a@b.c', name: 'b', contact: '' } ]; expect( filter( array, expr ) ).toEqual([ array[0], array[1] ]); will fail in ...
Open Graph Description: example: var expr = { name: '', email: '', contact: ''}, array = [ { email: 'a@b.c', name: 'a', contact: null }, { email: 'a@b.c', name: 'b', contact: '' } ]; expect( filter( array, expr ) ).toEqua...
X Description: example: var expr = { name: '', email: '', contact: ''}, array = [ { email: 'a@b.c', name: 'a', contact: null }, { email: 'a@b.c', name: 'b',...
Opengraph URL: https://github.com/angular/angular.js/issues/5055
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Why does filterFilter take out null values when compared with '' in 1.2.x ","articleBody":"example:\n\n``` javascript\nvar expr = { name: '', email: '', contact: ''},\n array = [\n { email: 'a@b.c', name: 'a', contact: null },\n { email: 'a@b.c', name: 'b', contact: '' }\n ];\nexpect( filter( array, expr ) ).toEqual([ array[0], array[1] ]);\n```\n\nwill fail in 1.2.x which in some cases should not. \nI'm using this [SmartTable](https://github.com/lorenzofox3/Smart-Table) module in a project, and it fails displaying data in the table because of this new filter behavior, and it shouldn't in this context.\n","author":{"url":"https://github.com/gizm0bill","@type":"Person","name":"gizm0bill"},"datePublished":"2013-11-20T16:11:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/5055/angular.js/issues/5055"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5cfaf16a-9611-41af-90e6-70109e5b49fc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB48:17B883:256F423:32A7E4E:6A59B878 |
| html-safe-nonce | f85e66fecaec44febd3832171e86ed10bb06248a04cce947d79a255a20da3f9e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjQ4OjE3Qjg4MzoyNTZGNDIzOjMyQTdFNEU6NkE1OUI4NzgiLCJ2aXNpdG9yX2lkIjoiNjg5MTQzOTM1MzY2NTAwOTc4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 931df0bd376cefa5ea39f122e7d2a79e8c70617bf22d480dd29673e6252d1df0 |
| hovercard-subject-tag | issue:23001418 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular.js/5055/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4ffb411d28a0eeacb22a95cca35b49940350f9465ffac7fcf0375580070128b9/angular/angular.js/issues/5055 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ffb411d28a0eeacb22a95cca35b49940350f9465ffac7fcf0375580070128b9/angular/angular.js/issues/5055 |
| og:image:alt | example: var expr = { name: '', email: '', contact: ''}, array = [ { email: 'a@b.c', name: 'a', contact: null }, { email: 'a@b.c', name: 'b', contact: '' } ]; expect( filter( array, expr ) ).toEqua... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gizm0bill |
| hostname | github.com |
| expected-hostname | github.com |
| None | ba3976babb66479b1c943a8edc0777d96157da48fadc0161f9ddb219deee8353 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular.js git https://github.com/angular/angular.js.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 460078 |
| octolytics-dimension-repository_nwo | angular/angular.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 460078 |
| octolytics-dimension-repository_network_root_nwo | angular/angular.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ab680789ae4a316cdaf0d5a292a1760140931cc4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width