Codota Logo For Javascript
LoDashStatic.toLower
Code IndexAdd Codota to your IDE (free)

How to use
toLower
function
in
LoDashStatic

Best JavaScript code snippets using lodash.LoDashStatic.toLower(Showing top 15 results out of 315)

origin: lando/lando

// Add/update a subscriber
 api.put('/v1/subscribe', handler((req, res) => {
  // Throw error if we don't have an email
  if (!_.get(req, 'body.email', false)) {
   throw utils.makeError('Malformed email!', 422);
  }
  // Notify on slack
  slack.newSubscriber({email: _.toLower(req.body.email), groups: req.body.groups});
  // Get and reconcile interests
  return addSubscriber(
   config.LANDO_API_MAILCHIMP_KEY,
   req.body.email,
   req.body.groups,
   req.body.defaults
  );
 }));
origin: lando/lando

mailchimp.get('lists/613837077f/interest-categories').then(results => {
  return Promise.all(_(_.get(results, 'categories', []))
   .map(category => category.id)
   .map(id => mailchimp.get(`lists/613837077f/interest-categories/${id}/interests`))
   .value())
   .then(categories => _(categories)
    .map(category => category.interests)
    .flatten()
    .map(interest => ({name: interest.name, id: interest.id}))
   )
   .then(interests => _(interests)
    .filter(interest => _.includes(groups, interest.name))
    .map(interest => ([interest.id, true]))
    .fromPairs()
    .value()
   );
 })
 // Update the contact
 .then(interests => {
  const lowerEmail = _.toLower(email);
  return mailchimp.put(`/lists/613837077f/members/${utils.md5(lowerEmail)}`, {
   email_address: lowerEmail,
   interests: _.merge({}, defaults, interests),
   status: 'subscribed',
  });
 })
origin: andriichyzh/node-js-advanced-training

constructor() {
    this._envs = _.reduce(process.env, function(map, val, key) {
      let name = _.replace(key, '_', '.');
        name = _.toLower(name);

      return map.set(name, val);
    }, new Map());
  }
origin: mariobermudezjr/ecommerce-react-graphql-stripe

_.forEach(apis, api => {
    const modelsPath = path.join(apiPath, api, 'models');

    let models;
    try {
     models = fs.readdirSync(modelsPath);

     const modelIndex = _.indexOf(_.map(models, model => _.toLower(model)), searchFileName);

     if (modelIndex !== -1) searchFilePath = `${modelsPath}/${models[modelIndex]}`;
    } catch (e) {
     errors.push({
      id: 'request.error.folder.read',
      params: {
       folderPath: modelsPath
      }
     });
    }
   });
origin: topcoder-platform/challenge-api

/**
 * Search challenge types
 * @param {Object} criteria the search criteria
 * @returns {Object} the search result
 */
async function searchChallengeTracks (criteria) {
 // TODO - move this to ES
 let records = await helper.scan('ChallengeTrack')
 const page = criteria.page || 1
 const perPage = criteria.perPage || 50

 if (criteria.name) records = _.filter(records, e => helper.partialMatch(criteria.name, e.name))
 if (criteria.description) records = _.filter(records, e => helper.partialMatch(criteria.description, e.description))
 if (criteria.track) records = _.filter(records, e => _.toLower(criteria.track) === _.toLower(e.track))
 if (criteria.abbreviation) records = _.filter(records, e => helper.partialMatch(criteria.abbreviation, e.abbreviation))
 if (!_.isUndefined(criteria.isActive)) records = _.filter(records, e => (e.isActive === (criteria.isActive === 'true')))
 // if (criteria.legacyId) records = _.filter(records, e => (e.legacyId === criteria.legacyId))

 const total = records.length
 const result = records.slice((page - 1) * perPage, page * perPage)

 return { total, page, perPage, result }
}
origin: topcoder-platform/challenge-api

/**
 * Test whether the given value is partially match the filter.
 * @param {String} filter the filter
 * @param {String} value the value to test
 * @returns {Boolean} the match result
 */
function partialMatch (filter, value) {
 if (filter) {
  if (value) {
   const filtered = xss(filter)
   return _.toLower(value).includes(_.toLower(filtered))
  } else {
   return false
  }
 } else {
  return true
 }
}
origin: gaccettola/mortis

var line_lower = _.toLower ( line );
origin: thatisuday/catage

format = _.toLower( format );
format = ( format === IMAGE_FORMATS.JPG ) ? IMAGE_FORMATS.JPEG : format;
origin: tabvn/video-streaming-service

email: _.trim(_.toLower(_.get(user, 'email', ''))),
password: _.get(user, 'password'),
created: new Date(),
origin: mariobermudezjr/ecommerce-react-graphql-stripe

this.query(qb => {
    qb.orWhereRaw(`LOWER(${attribute}) LIKE '%${_.toLower(query)}%'`);
   });
    case 'pg': {
     const searchQuery = searchText.map(attribute =>
      _.toLower(attribute) === attribute
       ? `to_tsvector(${attribute})`
       : `to_tsvector('${attribute}')`
origin: mariobermudezjr/ecommerce-react-graphql-stripe

this.query(qb => {
    qb.orWhereRaw(`LOWER(${attribute}) LIKE '%${_.toLower(query)}%'`);
   });
    case 'pg': {
     const searchQuery = searchText.map(attribute =>
      _.toLower(attribute) === attribute
       ? `to_tsvector(${attribute})`
       : `to_tsvector('${attribute}')`
origin: mariobermudezjr/ecommerce-react-graphql-stripe

Brew.query(qb => {
    qb.orWhereRaw(`LOWER(${attribute}) LIKE '%${_.toLower(query)}%'`);
   });
    case 'pg': {
     const searchQuery = searchText.map(attribute =>
      _.toLower(attribute) === attribute
       ? `to_tsvector(${attribute})`
       : `to_tsvector('${attribute}')`
origin: lando/lando

// Add/update a subscriber
 api.put('/v1/subscribe', handler((req, res) => {
  // Throw error if we don't have an email
  if (!_.get(req, 'body.email', false)) {
   throw utils.makeError('Malformed email!', 422);
  }
  // Notify on slack
  slack.newSubscriber({email: _.toLower(req.body.email), groups: req.body.groups});
  // Get and reconcile interests
  return addSubscriber(
   config.LANDO_API_MAILCHIMP_KEY,
   req.body.email,
   req.body.groups,
   req.body.defaults
  );
 }));
origin: lando/lando

mailchimp.get('lists/613837077f/interest-categories').then(results => {
  return Promise.all(_(_.get(results, 'categories', []))
   .map(category => category.id)
   .map(id => mailchimp.get(`lists/613837077f/interest-categories/${id}/interests`))
   .value())
   .then(categories => _(categories)
    .map(category => category.interests)
    .flatten()
    .map(interest => ({name: interest.name, id: interest.id}))
   )
   .then(interests => _(interests)
    .filter(interest => _.includes(groups, interest.name))
    .map(interest => ([interest.id, true]))
    .fromPairs()
    .value()
   );
 })
 // Update the contact
 .then(interests => {
  const lowerEmail = _.toLower(email);
  return mailchimp.put(`/lists/613837077f/members/${utils.md5(lowerEmail)}`, {
   email_address: lowerEmail,
   interests: _.merge({}, defaults, interests),
   status: 'subscribed',
  });
 })
origin: mariobermudezjr/ecommerce-react-graphql-stripe

Brand.query(qb => {
    qb.orWhereRaw(`LOWER(${attribute}) LIKE '%${_.toLower(query)}%'`);
   });
    case 'pg': {
     const searchQuery = searchText.map(attribute =>
      _.toLower(attribute) === attribute
       ? `to_tsvector(${attribute})`
       : `to_tsvector('${attribute}')`
lodash(npm)LoDashStatictoLower

JSDoc

Converts `string`, as a whole, to lower case.

Most used lodash functions

  • LoDashStatic.map
    Creates an array of values by running each element in collection through iteratee. The iteratee is
  • LoDashStatic.isEmpty
    Checks if value is empty. A value is considered empty unless it’s an arguments object, array, string
  • LoDashStatic.forEach
    Iterates over elements of collection invoking iteratee for each element. The iteratee is invoked wit
  • LoDashStatic.find
    Iterates over elements of collection, returning the first element predicate returns truthy for.
  • LoDashStatic.pick
    Creates an object composed of the picked `object` properties.
  • LoDashStatic.get,
  • LoDashStatic.isArray,
  • LoDashStatic.filter,
  • LoDashStatic.merge,
  • LoDashStatic.isString,
  • LoDashStatic.isFunction,
  • LoDashStatic.assign,
  • LoDashStatic.extend,
  • LoDashStatic.includes,
  • LoDashStatic.keys,
  • LoDashStatic.cloneDeep,
  • LoDashStatic.uniq,
  • LoDashStatic.isObject,
  • LoDashStatic.omit

Popular in JavaScript

  • body-parser
    Node.js body parsing middleware
  • async
    Higher-order functions and common patterns for asynchronous code
  • aws-sdk
    AWS SDK for JavaScript
  • bluebird
    Full featured Promises/A+ implementation with exceptionally good performance
  • lodash
    Lodash modular utilities.
  • q
    A library for promises (CommonJS/Promises/A,B,D)
  • ms
    Tiny millisecond conversion utility
  • minimist
    parse argument options
  • ws
    Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js
  • Top plugins for WebStorm
    The challenge is finding the best plugins for JavaScript development on Intellij IDEs. Who wants to sit there and go over hundreds of plugins to pick the best?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJavascript Code Index
Get Codota for your IDE now