|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
326 bytes
|
| Line | |
|---|
| 1 | define(['./_group'], function (_group) {
|
|---|
| 2 |
|
|---|
| 3 | // Split a collection into two arrays: one whose elements all pass the given
|
|---|
| 4 | // truth test, and one whose elements all do not pass the truth test.
|
|---|
| 5 | var partition = _group(function(result, value, pass) {
|
|---|
| 6 | result[pass ? 0 : 1].push(value);
|
|---|
| 7 | }, true);
|
|---|
| 8 |
|
|---|
| 9 | return partition;
|
|---|
| 10 |
|
|---|
| 11 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.