src/bullshitter/storage/bullshit-storage.js
/**
 * Checks if some text is not stored in database yet
 * @param {String} bullshit
 * @returns {boolean}
 */
Checks if some text is not stored in database yet
@param {String} bullshit
@returns {boolean}
Checks if some text is not stored in database yet @param { String } bullshit @returns { boolean }
function bullshitIsUnique(bullshit) {
  var coll = getBullshitCollection(),
    sameBullshit = coll.find({text: bullshit});
  return sameBullshit.length === 0;
}
function bullshitIsUnique ( bullshit ) { var coll = getBullshitCollection ( ) , sameBullshit = coll . find ( { text : bullshit } ) ; return sameBullshit . length === 0 ; }
Checks if some text is not stored in database yet
 @param {String} bullshit
 @returns {boolean}
Checks if some text is not stored in database yet @param { String } bullshit @returns { boolean }