# All files / extensions selectItemPrimaryValue.js

20% Statements 1/5
0% Branches 0/6
100% Functions 1/1
20% Lines 1/5

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    13x

     export default item => {
      if (_.isString(item)) {
        return item;
      }
      if (_.isFunction(item.get)) {
        return item.get('id');
      }
      return item.id || JSON.stringify(item);
    };