DEV: removes _.some from codebase (#6627)
This commit is contained in:
parent
e860c8b844
commit
0a8227d19c
|
@ -24,7 +24,8 @@ export default Post.extend({
|
|||
return false;
|
||||
}
|
||||
lastRevisedAt = Date.parse(lastRevisedAt);
|
||||
return _.some(this.get("post_actions"), function(postAction) {
|
||||
const postActions = this.get("post_actions") || [];
|
||||
return postActions.some(postAction => {
|
||||
return Date.parse(postAction.created_at) < lastRevisedAt;
|
||||
});
|
||||
},
|
||||
|
|
|
@ -163,7 +163,7 @@ NavItem.reopenClass({
|
|||
|
||||
if (
|
||||
args.filterMode &&
|
||||
!_.some(items, i => i.indexOf(args.filterMode) !== -1)
|
||||
!items.some(i => i.indexOf(args.filterMode) !== -1)
|
||||
) {
|
||||
items.push(args.filterMode);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue