"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = contains;


/**
 * determines whether string `str` ref contains substring `searchRef`.
 * @param {string} str
 * @param {string} searchStr
 * @returns {boolean}
 * @example
 * ```js
 *  contains('foo bar', 'bar') // => true
 *  contains('foo', 'bar') // => false
 * ```
 */
function contains(str, searchStr) {
  return str.indexOf(searchStr) !== -1;
}