assignment for LHL, poor copy of lodash, lotide
Last updated 3 months ago by s-awaken .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @s-awaken/lotide 
SYNC missed versions from official npm registry.


A mini clone of the Lodash library.


BEWARE: This library was published for learning purposes. It is not intended for use in production-grade software.

This project was created and published by me as part of my learnings at Lighthouse Labs.


Install it:

npm install @s-awaken/lotide

Require it:

const _ = require('@s-awaken/lotide');

Call it:

const results = _.tail([1, 2, 3]) // => [2, 3]


The following functions are currently implemented:

  • countLetter(str): counts the number of letters in a given string
  • countOnly(str_to_count_in, counting_str): counts the exact amount of strings' presence in the first string
  • eqArrays(arr1, arr2): checks if arrays are equal
  • eqObjects(obj1, obj2): checks if objects are equal
  • findKey(obj, callback): finds a key
  • findKeyByValue(obj, str): finds a key with eqiuvalent value
  • flatten(nestedArray): takes a nested array and makes it into one array
  • head(array): returns the first value of an array
  • letterPosition(string): returns a object where each letter is a key and each position is it's value
  • map(array, callback): returns a value of an array based on the callback function
  • middle(array): returns middle of an array
  • tail(array): returns the tail (without th first value)
  • takeUntil(array, callback): takes until the callback function is no longer true
  • without(arr1, arr2): returns array without the other array.

Current Tags

  • 1.0.0                                ...           latest (3 months ago)

1 Versions

  • 1.0.0                                ...           3 months ago
Maintainers (1)
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (2)
Dev Dependencies (0)
Dependents (0)

Copyright 2014 - 2017 © taobao.org |