Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
  ..
  README.md
  argumentor.js
  argumentsToArray.js
  arrayToFlatPairs.js
  arrayToIterator.js
  arrayToObj.js
  arrayToSet.js
  asciiToArray.js
  cast.js
  ceorceArgs.js
  coerce.js
  collectionToObj.js
  defaultTo.js
  fromBufferToUint8Array.js
  fromIshToBoolean.js
  fromStringToUint31.js
  index.js
  iteratorToArray.js
  keyValueToIterator.js
  mapToArray.js
  objToMap.js
  of.js
  setToArray.js
  setToPairs.js
  stringToArray.js
  stringToCharCodes.js
  toArguments.js
  toArray.js
  toBinary.js
  toBoolean.js
  toByteSize.js
  toDate.js
  toEmpty.js
  toFinite.js
  toFrozen.js
  toFunction.js
  toIndex.js
  toInt32.js
  toInt8Unsafe.js
  toInteger.js
  toKey.js
  toKindOf.js
  toLength.js
  toMap.js
  toNumber.js
  toObj.js
  toObjStringTag.js
  toPairs.js
  toPlainObj.js
  toPrimitive.js
  toPromise.js
  toRegExp.js
  toString.js
  toStringCode.js
  toTestable.js
  toUint31.js
  toUint32.js
  typeGuard.js
  unicodeToArray.js
Size: Mime:

cast

cast & coerce values

todo

  • curry(2, coerce(type, arg))
  • add serialize for persisting & hydrating with strings, using new Function as needed (mark in metadata)

resources

why?

TypeGuards

(the assumption based on research & testing the compiled code, though it is likely there are more things to check and more known unknowns)

  • megamorphic code wrapping the monomorphic code is perfect
  • with the arg casting, it makes a solid decision tree, which ends up just becoming a GO TO LINE# -> easily optimized cast function "
  • this is how typescript should compile
  • this is likely why lodash has internal functions called base
  • the other way to handle it is throw errors with invalid types