Jonas Jenwald
ba761e42f0
Change the getVisibleElements
helper function to take a parameter object
...
Given the number of parameters, and the fact that many of them are booleans, the call-sites are no longer particularly easy to read and understand. Furthermore, this slightly improves the formatting of the JSDoc-comment, since it needed updating as part of these changes anyway.
Finally, this removes an unnecessary `numViews === 0` check from `getVisibleElements`, since that should be *very* rare and more importantly that the `binarySearchFirstItem` function already has a fast-path for that particular case.
2020-11-04 12:15:04 +01:00
..
2020-08-30 16:28:40 +02:00
2020-01-25 00:20:22 +01:00
2015-01-26 16:44:45 +01:00
2020-08-30 21:49:08 +02:00
2020-08-22 14:24:04 +02:00
2020-10-21 19:00:56 +02:00
2020-11-01 15:37:24 +01:00
2020-08-05 23:08:06 +02:00
2020-11-04 12:15:04 +01:00
2015-08-14 18:59:55 +02:00
2020-11-01 12:08:38 +01:00
2011-07-05 10:53:57 -07:00
2020-11-01 12:08:38 +01:00
2020-09-05 17:18:15 +02:00
2020-10-04 20:25:31 +02:00
2020-11-01 12:08:38 +01:00
2020-11-01 12:08:38 +01:00
2020-01-18 10:53:01 +09:00
2020-09-08 12:54:51 +02:00
2020-11-01 15:37:24 +01:00
2019-12-26 12:35:12 +01:00
2020-01-04 13:01:43 +01:00
2020-09-04 12:07:34 +02:00
2020-02-27 19:38:13 +01:00
2020-05-20 12:09:04 +02:00
2020-03-29 12:20:23 +02:00
2020-08-20 11:18:43 +01:00
2019-12-26 12:34:24 +01:00
2020-11-02 11:36:17 +01:00
2020-08-30 16:28:40 +02:00
2020-11-01 15:37:24 +01:00
2020-10-18 14:29:59 +02:00
2020-09-25 14:42:55 +02:00
2020-09-05 17:18:15 +02:00
2020-09-05 17:18:15 +02:00
2020-09-25 14:21:05 +02:00
2020-09-09 22:26:08 +02:00
2020-08-30 16:28:40 +02:00
2020-03-24 16:54:37 +01:00
2020-10-18 16:04:00 +02:00
2020-11-04 12:15:04 +01:00
2020-02-27 14:44:48 +01:00
2020-09-05 17:18:15 +02:00
2020-03-24 16:54:37 +01:00
2019-12-26 12:34:24 +01:00
2020-05-16 16:22:15 +02:00
2020-04-14 12:28:14 +02:00
2020-08-30 21:49:08 +02:00
2020-04-14 12:28:14 +02:00
2020-08-20 09:57:42 +02:00
2020-11-04 12:15:04 +01:00
2020-03-21 13:55:06 +01:00
2020-09-05 17:18:15 +02:00
2017-05-31 09:22:25 -05:00
2018-03-21 18:21:46 +01:00
2019-01-23 20:33:20 +01:00
2016-02-14 13:23:34 +01:00
2017-05-31 09:22:25 -05:00
2020-09-10 17:16:24 +02:00
2020-09-10 17:16:24 +02:00
2020-10-11 14:06:47 +02:00