UNPKG

node-red-contrib-chatbot

Version:

REDBot a Chat bot for a full featured chat bot for Telegram, Facebook Messenger and Slack. Almost no coding skills required

12 lines (10 loc) 224 B
const sameArray = (arr1, arr2) => { if (arr1.length !== arr2.length) { return false; } const cmp = arr2.sort(); return arr1 .sort() .every((item, idx) => item === cmp[idx]); }; export default sameArray;