GithubHelp home page GithubHelp logo

pvergain / underdash Goto Github PK

View Code? Open in Web Editor NEW

This project forked from underdash/underdash

0.0 2.0 0.0 185 KB

For now, an experimental Underscore+Lodash merge repository. Later, perhaps something greater.

License: MIT License

underdash's Introduction

Underdash.js

This is an experimental and provisional Underscore+Lodash merge repo. Nothing to see here, apart from sketches and wild ideas for the moment.

Fleshing out a consensus API:

"Core" Functions

Iteration

  • each (forEach)
  • map
  • mapObject (mapValues)
  • reduce
  • filter
  • find
  • reject
  • any (some)
  • all (every)
  • contains (includes)
  • invoke

Grouping

  • groupBy
  • indexBy
  • countBy

Arrays

  • rest
  • compact
  • flatten
  • uniq

Objects

  • keys
  • allKeys (keysIn)
  • values
  • pairs
  • invert
  • create
  • extend
  • assign
  • merge
  • forIn
  • forInRight
  • forOwn
  • forOwnRight
  • pick
  • defaults
  • has
  • matcher (match)
  • isMatch
  • property
  • propertyOf

Functions

  • bind
  • partial
  • memoize
  • throttle
  • debounce
  • compose (backflow, flowRight)

Utility

  • noConflict
  • underdash (runInContext from lodash)
  • times
  • mixin
  • iteratee
  • chain
  • value
  • attempt

"More" Functions

Iteration

  • transform
  • reduceRight
  • at
  • sortBy
  • sortByAll
  • sortByOrder
  • shuffle
  • sample
  • toArray
  • toPlainObject
  • size
  • partition
  • where
  • findWhere
  • pluck

Arrays

  • first
  • last
  • initial
  • without
  • union
  • intersection
  • difference
  • xor
  • zip
  • unzip
  • object
  • indexOf
  • lastIndexOf
  • sortedIndex
  • findIndex
  • findLastIndex
  • range
  • slice
  • fill
  • chunk
  • drop
  • dropWhile
  • dropRight
  • dropRightWhile
  • take
  • takeWhile
  • takeRight
  • takeRightWhile

Objects

  • functions
  • mapKeys
  • findKey
  • omit
  • clone
  • get
  • set
  • tap
  • isEmpty

Functions

  • bindAll
  • delay
  • defer
  • once
  • after
  • before
  • restArgs (restParam)
  • spread
  • arity (ary)
  • curry
  • curryRight
  • flow
  • flowRight (compose)
  • wrap
  • negate

Utility

  • constant
  • identity
  • noop
  • random
  • uniqueId
  • result
  • now
  • gt
  • gte
  • lt
  • lte

String

  • camelCase
  • capitalize
  • delatinize (deburr from lodash)
  • dasherize (kebabCase from lodash)
  • underscore (snakeCase form lodash)
  • headline (Let's try to do a real solid "Headline Case" implementation. It's worth it.)
  • truncate (trunc from lodash)
  • words
  • startsWith
  • endsWith
  • escapeRegExp
  • pad
  • padLeft
  • padRight
  • trim
  • trimLeft
  • trimRight
  • parseInt

HTML

  • escape
  • unescape
  • template

Math

  • max
  • min
  • add
  • sum
  • inRange
  • round
  • floor
  • ceil

Types

  • isElement
  • isArray
  • isTypedArray
  • isObject
  • isArguments
  • isError
  • isFunction
  • isString
  • isNumber
  • isFinite
  • isBoolean
  • isDate
  • isRegExp
  • isNaN
  • isNull
  • isUndefined

Deep

  • isEqual
  • flattenDeep
  • cloneDeep

underdash's People

Contributors

jamiebuilds avatar jashkenas avatar jdalton avatar jridgewell avatar megawac avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.