Skip to content

Commit

Permalink
refactor(contained): alias to included
Browse files Browse the repository at this point in the history
As ramda@0.26.0 ranmed contains to includes we had to compensase with our naming too

Ref #749
  • Loading branch information
char0n committed Nov 25, 2018
1 parent 2f475d2 commit c8ef8a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/contained.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import { flip, contains } from 'ramda';
* Like {@link http://ramdajs.com/docs/#contains|R.contains} but with argument order reversed.
*
* @func contained
* @aliases included
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/2.8.0|v2.8.0}
* @deprecated since v2.12.0; please use RA.included alias
* @category List
* @sig [a] -> a -> Boolean
* @param {Array|String} list The list to consider
Expand Down
3 changes: 3 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1027,6 +1027,9 @@ declare namespace RamdaAdjunct {
*/
contained<T>(list: T[], val: T): boolean;
contained<T>(list: T[]): (val: T) => boolean;
included<T>(list: T[], val: T): boolean; // alias
included<T>(list: T[]): (val: T) => boolean; // alias


/**
* Can be used as a way to compose multiple invokers together to form polymorphic functions,
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export { default as omitIndexes } from './omitIndexes';
export { default as compact } from './compact';
export { default as appendFlipped } from './appendFlipped';
export { default as contained } from './contained';
export { default as included } from './contained';
export { default as move } from './move';
export { default as lengthGt } from './lengthGt';
export { default as lengthLt } from './lengthLt';
Expand Down

0 comments on commit c8ef8a4

Please sign in to comment.