You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$.viewportW()// get viewport width$.viewportH()// get viewport height
It could be useful to let these support a min parameter that compares and returns boolean:
$.viewportW(min)// true if viewport is at least `min` wide_.find(list,$.viewportW)// use case
Are there pitfalls in adding the (min) syntax? It seems rather expressive. Going further to add (min, max) would be problematic for the _.find use case above because of the indices.
The text was updated successfully, but these errors were encountered:
The 1.7- viewport methods are simple getters:
It could be useful to let these support a
min
parameter that compares and returns boolean:Are there pitfalls in adding the
(min)
syntax? It seems rather expressive. Going further to add(min, max)
would be problematic for the_.find
use case above because of the indices.The text was updated successfully, but these errors were encountered: