Skip to content

A Bundle of Javascript util Library to help developers. No dependency to other Libraries.

License

Notifications You must be signed in to change notification settings

dragmove/aid.js

Repository files navigation

aid.js

npm version

About

  • A Bundle of Javascript util Library to help developers.
  • No dependency to other Libraries.

Thanks to whoever use aid.js.

Buy Me A Coffee

Install

npm install aid.js --save-dev

Getting Started

In Node.js environment :

var aid = require('aid.js');
var isNotNaN = aid.not(isNaN);
console.log(isNotNaN(0)); // true

In Browser environment :

import aid from 'aid.js';
const isNotNaN = aid.not(isNaN);
console.log(isNotNaN(0)); // true

Usage

  • base utils
aid.existy
aid.isDefined
aid.isBoolean
aid.isNumber
aid.isInteger
aid.isString
aid.isArray
aid.isObject
aid.isFunction
aid.isRegExp
aid.isError
aid.isElement
aid.extend
aid.inherit
aid.namespace
aid.memoize
aid.borrow
aid.bind
aid.compose
aid.not
aid.each
aid.truthy
aid.falsy
aid.nth
aid.allOf
aid.anyOf
aid.constant
aid.plucker
aid.best
aid.iterateUntil
aid.curry
aid.curry2
aid.curryAll
aid.reverseArgs
aid.partial
aid.partialRight
aid.rest
aid.pipeline
aid.lazyChain
aid.eq
aid.identity
aid.tab
aid.alt
aid.seq
aid.fork
  • operator utils
aid.operator['+']
aid.operator['===']
aid.operator['!']
  • platform utils
aid.platform.isWindow
aid.platform.isMac
aid.platform.isIOS
aid.platform.isIPhone
aid.platform.isIPad
aid.platform.isAndroid
  • browser utils
aid.browser.isIE
aid.browser.isEdge
aid.browser.isFF
aid.browser.isOpera
aid.browser.isChrome
aid.browser.isChromePhone
aid.browser.isChromeTablet
aid.browser.isSafari
aid.browser.isSafariPhone
aid.browser.isSafariTablet
aid.browser.getIEVersion
aid.browser.getFFVersion
aid.browser.getOperaVersion
aid.browser.getChromeVersion
aid.browser.getSafariVersion
aid.browser.getIECompatibility
aid.browser.isSupportDraggable
aid.browser.isSupportDragAndDrop
aid.browser.isSupportFileApi
aid.browser.isChromeExtension
aid.browser.canUseDOM
aid.browser.getCookie
aid.browser.setCookie
  • string utils
aid.string.trim
aid.string.hasUniqueChars
aid.string.getFileExtension
aid.string.isEmail
aid.string.isIFrame
aid.string.getUriParam
aid.string.getUriParams
aid.string.getUriCombinedParams
aid.string.isValidYoutubeVideoId
aid.string.getObjCheckYoutubeURI
aid.string.getObjCheckTwitchURI
aid.string.getDocumentPrefixedProperty
aid.string.getElementPrefixedStyle
aid.string.removeNoContentElements
aid.string.removeNoContentElementsRecursively
aid.string.absentToEmpty
aid.string.numberWithCommas
aid.string.getPositionFromTranslateStr
aid.string.isPalindrome
aid.string.isDecoded
aid.string.decodeRecursively
aid.string.escapeRegExp
  • math utils
aid.math.getSizeAspectFill
aid.math.getSizeAspectFit
aid.math.getSizeWidthFit
aid.math.isEpsilonEqual
aid.math.isIndexInLoop
aid.math.getLoopedLastIndex
aid.math.getReverseLoopedFirstIndex
aid.math.factorial
aid.math.getObjForPagination
aid.math.degreeToRadian
aid.math.radianToDegree
aid.math.getHeightOfRightTriangle
aid.math.getDistanceBetweenTwoPoints
aid.math.getOrthogonalPointBetweenLineAndSomePoint
aid.math.getRandomPositiveNegative
aid.math.getRandomFloat
aid.math.getRandomInt
aid.math.remap
aid.math.gt
aid.math.lt
aid.math.gte
aid.math.lte
  • date utils
aid.date.DAYS
aid.date.MONTHS
aid.date.MIN_TO_SEC
aid.date.HOUR_TO_SEC
aid.date.DAY_TO_SEC
  • array utils
aid.array.indexOf
aid.array.indexOfMin
aid.array.swap
aid.array.selectionSort
aid.array.insertionSort
aid.array.merge
aid.array.mergeSort
aid.array.getPivotIndexAfterPartition
aid.array.quickSort
aid.array.remove
aid.array.getMatrixArr
aid.array.binaryIndexOf
aid.array.getFirstObjectHasProperty
aid.array.overlappedConditionSortByProperty
  • object utils
aid.object.isEmpty
aid.object.keys
aid.object.shallowEqual
  • element utils
aid.element.isEntirelyInViewport
aid.element.isPartiallyInViewport
  • file utils
aid.file.appendScriptFile
  • clipboard utils
aid.clipboard.copyText
  • monad utils
aid.monad.Identity
aid.monad.Empty
aid.monad.Wrapper
aid.monad.Nothing
aid.monad.Just
aid.monad.Maybe
aid.monad.Left
aid.monad.Right
aid.monad.Either
aid.monad.IO
  • data structure utils
aid.createStack
aid.createQueue
aid.createLinkedList
aid.createSet
aid.createHashTable
aid.createDictionary
aid.createBinarySearchTree
aid.createGraph

Contact

License

MIT license.

About

A Bundle of Javascript util Library to help developers. No dependency to other Libraries.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published