[ramda] remove R.isArrayLike (#39084)

This commit is contained in:
Cotton Hou 2019-10-15 01:49:23 +08:00 committed by Andrew Branch
parent 90eb4f593a
commit d8e3ffcb09
6 changed files with 1 additions and 21 deletions

View File

@ -1,2 +0,0 @@
import { isArrayLike } from '../index';
export default isArrayLike;

View File

@ -129,7 +129,6 @@
/// <reference path="./es/invert.d.ts" />
/// <reference path="./es/invertObj.d.ts" />
/// <reference path="./es/invoker.d.ts" />
/// <reference path="./es/isArrayLike.d.ts" />
/// <reference path="./es/is.d.ts" />
/// <reference path="./es/isEmpty.d.ts" />
/// <reference path="./es/isNil.d.ts" />
@ -383,7 +382,6 @@
/// <reference path="./src/invert.d.ts" />
/// <reference path="./src/invertObj.d.ts" />
/// <reference path="./src/invoker.d.ts" />
/// <reference path="./src/isArrayLike.d.ts" />
/// <reference path="./src/is.d.ts" />
/// <reference path="./src/isEmpty.d.ts" />
/// <reference path="./src/isNil.d.ts" />
@ -1627,11 +1625,6 @@ declare namespace R {
is(ctor: any, val: any): boolean;
is(ctor: any): (val: any) => boolean;
/**
* Tests whether or not an object is similar to an array.
*/
isArrayLike(val: any): boolean;
/**
* Reports whether the list has zero elements.
*/

View File

@ -106,7 +106,7 @@ class F2 {
() => {
// coerceArray :: (a|[a]) -> [a]
const coerceArray = R.unless(R.isArrayLike, R.of);
const coerceArray = R.unless(R.is(Array), R.of);
const a: number[] = coerceArray([1, 2, 3]); // => [1, 2, 3]
const b: number[] = coerceArray(1); // => [1]
};

View File

@ -1,2 +0,0 @@
import { isArrayLike } from '../index';
export default isArrayLike;

View File

@ -1,8 +0,0 @@
import * as R from 'ramda';
() => {
let x: boolean;
x = R.isArrayLike('a');
x = R.isArrayLike([1, 2, 3]);
x = R.isArrayLike([]);
};

View File

@ -110,7 +110,6 @@
"test/invertObj-tests.ts",
"test/invoker-tests.ts",
"test/is-tests.ts",
"test/isArrayLike-tests.ts",
"test/isEmpty-tests.ts",
"test/join-tests.ts",
"test/juxt-tests.ts",