You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

280 lines
6.9 KiB

4 years ago
  1. {
  2. "concat": {
  3. "compatible": true,
  4. "alternative": "Array.prototype.concat()"
  5. },
  6. "drop": {
  7. "compatible": true,
  8. "alternative": "Array.prototype.slice()"
  9. },
  10. "dropRight": {
  11. "compatible": true,
  12. "alternative": "Array.prototype.slice()"
  13. },
  14. "indexOf": {
  15. "compatible": true,
  16. "alternative": "Array.prototype.indexOf()"
  17. },
  18. "join": {
  19. "compatible": true,
  20. "alternative": "Array.prototype.join()"
  21. },
  22. "last": {
  23. "compatible": true,
  24. "alternative": "Array.prototype.slice()"
  25. },
  26. "lastIndexOf": {
  27. "compatible": true,
  28. "alternative": "Array.prototype.lastIndexOf()"
  29. },
  30. "reverse": {
  31. "compatible": true,
  32. "alternative": "Array.prototype.reverse()"
  33. },
  34. "fill": {
  35. "compatible": true,
  36. "alternative": "Array.prototype.fill()",
  37. "ES6": true
  38. },
  39. "find": {
  40. "compatible": false,
  41. "alternative": "Array.prototype.find()",
  42. "ES6": true
  43. },
  44. "detect": {
  45. "compatible": true,
  46. "alternative": "Array.prototype.find()",
  47. "ES6": true
  48. },
  49. "first": {
  50. "compatible": true,
  51. "alternative": "Array.prototype.slice()"
  52. },
  53. "findIndex": {
  54. "compatible": false,
  55. "alternative": "Array.prototype.findIndex()",
  56. "ES6": true
  57. },
  58. "isArray": {
  59. "compatible": true,
  60. "alternative": "Array.isArray()"
  61. },
  62. "each": {
  63. "compatible": false,
  64. "alternative": "Array.prototype.forEach() or Object.entries().forEach()"
  65. },
  66. "forEach": {
  67. "compatible": false,
  68. "alternative": "Array.prototype.forEach() or Object.entries().forEach()"
  69. },
  70. "every": {
  71. "compatible": false,
  72. "alternative": "Array.prototype.every()"
  73. },
  74. "all": {
  75. "compatible": false,
  76. "alternative": "Array.prototype.every()"
  77. },
  78. "filter": {
  79. "compatible": false,
  80. "alternative": "Array.prototype.filter()"
  81. },
  82. "select": {
  83. "compatible": false,
  84. "alternative": "Array.prototype.filter()"
  85. },
  86. "map": {
  87. "compatible": false,
  88. "alternative": "Array.prototype.map()"
  89. },
  90. "collect": {
  91. "compatible": false,
  92. "alternative": "Array.prototype.map()"
  93. },
  94. "reduce": {
  95. "compatible": false,
  96. "alternative": "Array.prototype.reduce()"
  97. },
  98. "inject": {
  99. "compatible": false,
  100. "alternative": "Array.prototype.reduce()"
  101. },
  102. "foldl": {
  103. "compatible": false,
  104. "alternative": "Array.prototype.reduce()"
  105. },
  106. "reduceRight": {
  107. "compatible": false,
  108. "alternative": "Array.prototype.reduceRight()"
  109. },
  110. "foldr": {
  111. "compatible": false,
  112. "alternative": "Array.prototype.reduceRight()"
  113. },
  114. "size": {
  115. "compatible": false,
  116. "alternative": "Array.prototype.length"
  117. },
  118. "some": {
  119. "compatible": false,
  120. "alternative": "Array.prototype.some()"
  121. },
  122. "any": {
  123. "compatible": false,
  124. "alternative": "Array.prototype.some()"
  125. },
  126. "includes": {
  127. "compatible": false,
  128. "alternative": "Array.prototype.includes()",
  129. "ES6": true
  130. },
  131. "contains": {
  132. "compatible": false,
  133. "alternative": "Array.prototype.includes()",
  134. "ES6": true
  135. },
  136. "slice": {
  137. "compatible": true,
  138. "alternative": "Array.prototype.slice()"
  139. },
  140. "takeRight": {
  141. "compatible": false,
  142. "alternative": "Array.prototype.slice()"
  143. },
  144. "bind": {
  145. "ruleName": "bind",
  146. "compatible": true,
  147. "alternative": "Function.prototype.bind()"
  148. },
  149. "isFinite": {
  150. "compatible": true,
  151. "alternative": "Number.isFinite()"
  152. },
  153. "isInteger": {
  154. "ruleName": "is-integer",
  155. "compatible": true,
  156. "alternative": "Number.isInteger()",
  157. "ES6": true
  158. },
  159. "isNaN": {
  160. "ruleName": "is-nan",
  161. "compatible": true,
  162. "alternative": "Number.isNaN()",
  163. "ES6": true
  164. },
  165. "isNil": {
  166. "ruleName": "is-nil",
  167. "compatible": true,
  168. "alternative": "value === null || value === undefined"
  169. },
  170. "isNull": {
  171. "ruleName": "is-null",
  172. "compatible": true,
  173. "alternative": "value === null"
  174. },
  175. "isUndefined": {
  176. "ruleName": "is-undefined",
  177. "compatible": true,
  178. "alternative": "value === undefined"
  179. },
  180. "keys": {
  181. "compatible": true,
  182. "alternative": "Object.keys()"
  183. },
  184. "extendOwn": {
  185. "compatible": true,
  186. "alternative": "Object.assign()",
  187. "ES6": true
  188. },
  189. "assign": {
  190. "compatible": true,
  191. "alternative": "Object.assign()",
  192. "ES6": true
  193. },
  194. "values": {
  195. "compatible": true,
  196. "alternative": "Object.values()",
  197. "ES6": true
  198. },
  199. "entries": {
  200. "compatible": true,
  201. "alternative": "Object.entries()",
  202. "ES6": true
  203. },
  204. "toPairs": {
  205. "compatible": true,
  206. "alternative": "Object.entries()",
  207. "ES6": true
  208. },
  209. "pairs": {
  210. "compatible": true,
  211. "alternative": "Object.entries()",
  212. "ES6": true
  213. },
  214. "split": {
  215. "compatible": true,
  216. "alternative": "String.prototype.split()"
  217. },
  218. "startsWith": {
  219. "ruleName": "starts-with",
  220. "compatible": true,
  221. "alternative": "String.prototype.startsWith()"
  222. },
  223. "endsWith": {
  224. "ruleName": "ends-with",
  225. "compatible": true,
  226. "alternative": "String.prototype.endsWith()"
  227. },
  228. "toLower": {
  229. "compatible": true,
  230. "alternative": "String.prototype.toLowerCase()"
  231. },
  232. "toUpper": {
  233. "compatible": true,
  234. "alternative": "String.prototype.toUpperCase()"
  235. },
  236. "trim": {
  237. "compatible": true,
  238. "alternative": "String.prototype.trim()"
  239. },
  240. "padStart": {
  241. "compatible": true,
  242. "alternative": "String.prototype.padStart()",
  243. "ES6": true
  244. },
  245. "padEnd": {
  246. "compatible": true,
  247. "alternative": "String.prototype.padEnd()",
  248. "ES6": true
  249. },
  250. "repeat": {
  251. "compatible": true,
  252. "alternative": "String.prototype.repeat()",
  253. "ES6": true
  254. },
  255. "uniq": {
  256. "compatible": true,
  257. "alternative": "[... new Set(arr)]",
  258. "ES6": true
  259. },
  260. "replace": {
  261. "compatible": true,
  262. "alternative": "String.prototype.replace()"
  263. },
  264. "omit": {
  265. "compatible": true,
  266. "alternative": "{a, b, c, ...notOmittedValues}",
  267. "ES6": true
  268. },
  269. "flatten": {
  270. "compatible": true,
  271. "alternative": "Array.prototype.reduce((a,b) => a.concat(b), [])"
  272. },
  273. "throttle": {
  274. "compatible": true,
  275. "alternative": "Example of native implementation: https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_throttle"
  276. }
  277. }