var _ = require('lodash');

module.exports = {
  inList: inList,
  contain: contain,
  equal: equal,
  count: count
};

function count(value) {
  return _.flow(_.property('length'), equal(value));
}

function inList(valueArray) {
  return _.partial(_.includes, valueArray);
}

function contain(value) {
  return _.partial(_.includes, _, value);
}

function equal(value) {
  return _.partial(_.isEqual, value);
}

@@ -159,26 +159,12 @@
 w(_.
-property('length')
+size
 , eq

use size method instead of get length property