code: function getLength(value) {
    if (typeof value !== 'object') {
      return 0;
    }
  
    if (isValue(value.length)) {
      return value.length;
    }
  
    return Object.keys(value).length;
  }
docs: /*
  Get length of container(Array or Object).
  @param value {*} - container
  @returns {number} - length of container