Skip to content

Commit

Permalink
- Updated doc comments
Browse files Browse the repository at this point in the history
- Updated travis build targets
- Updated license
  • Loading branch information
ascartabelli committed Mar 9, 2018
1 parent a547846 commit 2226531
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 16 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ script:
- gulp travis
node_js:
- "stable"
- "8"
- "7"
- "6"
- "5"
Expand Down
22 changes: 16 additions & 6 deletions dist/lamb.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @overview lamb - A lightweight, and docile, JavaScript library to help embracing functional programming.
* @author Andrea Scartabelli <andrea.scartabelli@gmail.com>
* @version 0.55.0-alpha.3
* @version 0.55.0-alpha.4
* @module lamb
* @license MIT
* @preserve
Expand Down Expand Up @@ -46,7 +46,7 @@
* @since 0.53.0
* @type String
*/
"@@lamb/version": {value: "0.55.0-alpha.3"}
"@@lamb/version": {value: "0.55.0-alpha.4"}
});

// prototype shortcuts
Expand Down Expand Up @@ -1021,6 +1021,7 @@

/**
* Sets, or creates, a property in a copy of the provided object to the desired value.
* @private
* @param {Object} source
* @param {String} key
* @param {*} value
Expand Down Expand Up @@ -3141,9 +3142,9 @@
* @category Array
* @see {@link module:lamb.getAt|getAt}
* @see {@link module:lamb.head|head} and {@link module:lamb.last|last} for common use cases shortcuts.
* @since 0.23.0
* @param {ArrayLike} arrayLike
* @param {Number} index
* @since 0.23.0
* @returns {*}
*/
function getIndex (arrayLike, index) {
Expand Down Expand Up @@ -3300,7 +3301,8 @@
var last = getAt(-1);

/**
* Builds a function that creates a copy of an array-like object with the given
* A curried version of {@link module:lamb.setIndex|setIndex} that builds
* a function that creates a copy of an array-like object with the given
* index changed to the desired value.<br/>
* If the index is not an integer or if it's out of bounds, the function
* will return a copy of the original array.<br/>
Expand Down Expand Up @@ -3671,7 +3673,7 @@
* {value: 6, year: "2002"}
* ]};
*
* var newUser = _.updatePathIn(user, "scores.0.value", increment);
* var newUser = _.updatePathIn(user, "scores.0.value", inc);
* // "newUser" holds:
* // {id: 1, scores: [
* // {value: 3, year: "2000"},
Expand Down Expand Up @@ -3778,6 +3780,8 @@
*
* @memberof module:lamb
* @category Array
* @see {@link module:lamb.intersection|intersection}
* @see {@link module:lamb.union|union}, {@link module:lamb.unionBy|unionBy}
* @since 0.6.0
* @param {ArrayLike} arrayLike
* @param {ArrayLike} other
Expand Down Expand Up @@ -4024,6 +4028,8 @@
*
* @memberof module:lamb
* @category Array
* @see {@link module:lamb.difference|difference}
* @see {@link module:lamb.union|union}, {@link module:lamb.unionBy|unionBy}
* @since 0.5.0
* @param {...ArrayLike} arrayLike
* @returns {Array}
Expand Down Expand Up @@ -4384,6 +4390,8 @@
* @category Array
* @function
* @see {@link module:lamb.unionBy|unionBy}
* @see {@link module:lamb.difference|difference}
* @see {@link module:lamb.intersection|intersection}
* @since 0.5.0
* @param {...ArrayLike} arrayLike
* @returns {Array}
Expand All @@ -4406,6 +4414,8 @@
* @memberof module:lamb
* @category Array
* @see {@link module:lamb.union|union}
* @see {@link module:lamb.difference|difference}
* @see {@link module:lamb.intersection|intersection}
* @since 0.51.0
* @param {ListIteratorCallback} iteratee
* @returns {Function}
Expand Down Expand Up @@ -5830,7 +5840,7 @@
* @see {@link module:lamb.mapValues|mapValues}
* @since 0.54.0
* @function
* @param {Function} fn
* @param {ObjectIteratorCallback} fn
* @returns {Function}
*/
var mapValuesWith = _curry2(mapValues, true);
Expand Down
4 changes: 2 additions & 2 deletions dist/lamb.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lamb.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion license.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015-2017 Andrea Scartabelli <andrea.scartabelli@gmail.com>
Copyright (c) 2015-2018 Andrea Scartabelli <andrea.scartabelli@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"coveralls": "gulp coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
},
"tonicExample": "var _ = require('lamb');",
"version": "0.55.0-alpha.3",
"version": "0.55.0-alpha.4",
"devDependencies": {
"coveralls": "^3.0.0",
"gulp": "^3.9.1",
Expand Down
7 changes: 4 additions & 3 deletions src/accessors.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ function getIn (obj, key) {
* @category Array
* @see {@link module:lamb.getAt|getAt}
* @see {@link module:lamb.head|head} and {@link module:lamb.last|last} for common use cases shortcuts.
* @since 0.23.0
* @param {ArrayLike} arrayLike
* @param {Number} index
* @since 0.23.0
* @returns {*}
*/
function getIndex (arrayLike, index) {
Expand Down Expand Up @@ -222,7 +222,8 @@ var head = getAt(0);
var last = getAt(-1);

/**
* Builds a function that creates a copy of an array-like object with the given
* A curried version of {@link module:lamb.setIndex|setIndex} that builds
* a function that creates a copy of an array-like object with the given
* index changed to the desired value.<br/>
* If the index is not an integer or if it's out of bounds, the function
* will return a copy of the original array.<br/>
Expand Down Expand Up @@ -593,7 +594,7 @@ function updatePath (path, updater, separator) {
* {value: 6, year: "2002"}
* ]};
*
* var newUser = _.updatePathIn(user, "scores.0.value", increment);
* var newUser = _.updatePathIn(user, "scores.0.value", inc);
* // "newUser" holds:
* // {id: 1, scores: [
* // {value: 3, year: "2000"},
Expand Down
8 changes: 8 additions & 0 deletions src/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ function appendTo (arrayLike, value) {
*
* @memberof module:lamb
* @category Array
* @see {@link module:lamb.intersection|intersection}
* @see {@link module:lamb.union|union}, {@link module:lamb.unionBy|unionBy}
* @since 0.6.0
* @param {ArrayLike} arrayLike
* @param {ArrayLike} other
Expand Down Expand Up @@ -300,6 +302,8 @@ var insertAt = _makePartial3(insert);
*
* @memberof module:lamb
* @category Array
* @see {@link module:lamb.difference|difference}
* @see {@link module:lamb.union|union}, {@link module:lamb.unionBy|unionBy}
* @since 0.5.0
* @param {...ArrayLike} arrayLike
* @returns {Array}
Expand Down Expand Up @@ -660,6 +664,8 @@ function transpose (arrayLike) {
* @category Array
* @function
* @see {@link module:lamb.unionBy|unionBy}
* @see {@link module:lamb.difference|difference}
* @see {@link module:lamb.intersection|intersection}
* @since 0.5.0
* @param {...ArrayLike} arrayLike
* @returns {Array}
Expand All @@ -682,6 +688,8 @@ var union = unionBy(identity);
* @memberof module:lamb
* @category Array
* @see {@link module:lamb.union|union}
* @see {@link module:lamb.difference|difference}
* @see {@link module:lamb.intersection|intersection}
* @since 0.51.0
* @param {ListIteratorCallback} iteratee
* @returns {Function}
Expand Down
2 changes: 1 addition & 1 deletion src/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function mapValues (source, fn) {
* @see {@link module:lamb.mapValues|mapValues}
* @since 0.54.0
* @function
* @param {Function} fn
* @param {ObjectIteratorCallback} fn
* @returns {Function}
*/
var mapValuesWith = _curry2(mapValues, true);
Expand Down
1 change: 1 addition & 0 deletions src/privates.js
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ var _search = generic(_stringProto.search);

/**
* Sets, or creates, a property in a copy of the provided object to the desired value.
* @private
* @param {Object} source
* @param {String} key
* @param {*} value
Expand Down

0 comments on commit 2226531

Please sign in to comment.