{"ScriptPreparationCode":"var first = [\u0027# of cohort exports\u0027,\u0027# of Merged Events \u0026 Properties\u0027,\u00273-month Pricing Plan Experiment Group\u0027,\u0027[Community] User Email\u0027,\u0027[Community] User Name\u0027,\u0027[Community] User Primary Role\u0027,\u0027[Community] User Rank\u0027,\u0027[Lexicon]# of Events\u0027,\u0027[Lexicon]# of Merged Events \u0026 Properties\u0027,\u0027[Lexicon]# of User Properties\u0027,\u0027[Not3] Last Notification Analytics View\u0027,\u0027[Not3] Last Priority Update\u0027,\u0027$sales_region\u0027,\u0027$tech_segment\u0027,\u0027a\u0027,\u0027AAAAAAAAQuickBrownFox\u0027,\u0027accept_invite_path\u0027,\u0027Account ID\u0027,\u0027Account Owner\u0027,\u0027Account Owner Role\u0027,\u0027Address\u0027,\u0027AFEWFWAEFse\u0027,\u0027age\u0027,\u0027$android_app_version\u0027,\u0027$android_brand\u0027,\u0027$android_devices\u0027,\u0027asd\u0027,\u0027asdfasd\u0027,\u0027asdfasdfasf\u0027,\u0027$avatar\u0027,\u0027behavioral prop\u0027,\u0027Beta Groups\u0027,\u0027Beta: Help with innovation phase?\u0027,\u0027Beta: Sign up date\u0027,\u0027Project owner billing account ID\u0027,\u0027Birthday\u0027,\u0027Blog Subscribe Date\u0027,\u0027$bounce_category\u0027,\u0027$braze_device_id\u0027,\u0027$braze_external_id\u0027,\u0027$browser\u0027,\u0027Cancelled\u0027,\u0027$city\u0027,\u0027$collections\u0027,\u0027Company\u0027,\u0027company\u0027,\u0027Company size\u0027,\u0027Completed onboarding intro version\u0027,\u0027Contact Sales Request Date\u0027,\u0027Content Download Date\u0027,\u0027$country_code\u0027,\u0027$created\u0027,\u0027CSM\u0027,\u0027Dashboard Whitelisted Project Owner\u0027,\u0027Domain\u0027,\u0027$email\u0027,\u0027encoded_email\u0027,\u0027Events plan id\u0027,\u0027Events plan name\u0027,\u0027Events plan price\u0027,\u0027events_plan_term_length_in_months\u0027,\u0027$first_name\u0027,\u0027fkwjeabsdkaj\u0027,\u0027foo\u0027,\u0027foozz\u0027,\u0027$geo_source\u0027,\u0027Get Demo Form Submit Date\u0027,\u0027$group_id\u0027,\u0027Has \u0022My Dashboard\u0022\u0027,\u0027Houzz Cohort\u0027,\u0027In-app Targeting\u0027,\u0027inviter_email\u0027,\u0027inviter_name\u0027,\u0027$ios_device_model\u0027,\u0027$ios_devices\u0027,\u0027Is lead\u0027,\u0027is paid\u0027,\u0027is_invited_user\u0027,\u0027id\u0027,\u0027$last_login\u0027,\u0027$last_name\u0027,\u0027Last Purchase\u0027,\u0027$last_seen\u0027,\u0027Lifetime Revenue\u0027,\u0027LinkedIn Handle\u0027,\u0027$marked_spam\u0027,\u0027$campaigns\u0027,\u0027Mixpanel Employee\u0027,\u0027moinak_test?\u0027,\u0027Most Active User\u0027,\u0027$mp_inapp_campaigns\u0027,\u0027my_special_prop\u0027,\u0027Name\u0027,\u0027$name\u0027,\u0027nesting\u0027,\u0027new_prop\u0027,\u0027new_prop_1\u0027,\u0027new_prop_2\u0027,\u0027new_prop_3\u0027,\u0027Num paid events plans\u0027,\u0027number\u0027,\u0027one\u0027,\u0027$os\u0027,\u0027Opt-in Status\u0027,\u0027opt_cookies\u0027,\u0027opt_email\u0027,\u0027opt_tracking\u0027,\u0027Organization ID\u0027,\u0027Organization Name\u0027,\u0027Origin\u0027,\u0027Owner\u0027,\u0027Partner Request Date\u0027,\u0027People plan price\u0027,\u0027Phone\u0027,\u0027$phone\u0027,\u0027Platforms integrated\u0027,\u0027Platforms integrated updated\u0027,\u0027$predict_grade\u0027,\u0027$predict_grade - Cohorts viewed report\u0027,\u0027$predict_grade - funnel\u0027,\u0027$predict_grade - message sent\u0027,\u0027$predict_grade - New signup predictions\u0027,\u0027$predict_grade - steve-cohort-test\u0027,\u0027$predict_grade - To be Signed up users\u0027,\u0027project_id\u0027,\u0027Project Name\u0027,\u0027QBQ Email Mismatch\u0027,\u0027Random Number\u0027,\u0027recoverd\u0027,\u0027recovered\u0027,\u0027$region\u0027,\u0027SDKs integrated\u0027,\u0027Seedlist_PK\u0027,\u0027SFDC Company\u0027,\u0027SFDC Last Activity Date\u0027,\u0027SFDC Owner Email\u0027,\u0027SFDC Owner Name\u0027,\u0027SFDC Relationship with Mixpanel\u0027,\u0027SFDC Role (ClearBit)\u0027,\u0027SFDC Role Type\u0027,\u0027SFDC Seniority (ClearBit)\u0027,\u0027SFDC Title\u0027,\u0027shold_not_see_this\u0027,\u0027Sign up date\u0027,\u0027Tab Views: Entity-management\u0027,\u0027Tab Views: Experiment-reporting\u0027,\u0027Tab Views: Funnels\u0027,\u0027Tab Views: Impact\u0027,\u0027Tab Views: Journeys\u0027,\u0027Tab Views: Launch-analysis\u0027,\u0027Tab Views: Lexicon\u0027,\u0027Tab Views: Profile\u0027,\u0027Tab Views: Segmentation\u0027,\u0027Tab Views: Stickiness\u0027,\u0027Tab Views: Transformations\u0027,\u0027Tab Views: Views\u0027,\u0027Tab Views: Visual-journeys\u0027,\u0027Tab Views: Workspaces\u0027,\u0027$team\u0027,\u0027Team\u0027,\u0027test3\u0027,\u0027three\u0027,\u0027Top_articles\u0027,\u0027$ae_total_app_sessions\u0027,\u0027two\u0027,\u0027$unsubscribed\u0027,\u0027User name\u0027,\u0027$username\u0027,\u0027USER_ID\u0027,\u0027utm_campaign [last touch]\u0027,\u0027utm_content [last touch]\u0027,\u0027utm_medium [last touch]\u0027,\u0027utm_source [last touch]\u0027,\u0027utm_term [last touch]\u0027,\u0027Webinar Form Submit Date\u0027,\u0027Work Location\u0027];\r\nvar second = [\u0022$name\u0022, \u0022$last_seen\u0022, \u0022$country_code\u0022, \u0022$region\u0022, \u0022$city\u0022, \u0022Account: ARR - Services\u0022, \u0022Account: ARR - Total\u0022, \u0022Account: CSM\u0022, \u0022Account: current events tally\u0022, \u0022Account: current MTU tally\u0022, \u0022Account: current people tally\u0022, \u0022Account: events/MTU plan ARR\u0022];","TestCases":[{"Name":"Javascript Set intersection","Code":"const firstSet = new Set(first);\r\nconst secondSet = new Set(second);\r\n\r\nnew Set([...firstSet].filter(item =\u003E secondSet.has(item)));","IsDeferred":false},{"Name":"Lodash intersection","Code":"_.intersection(first, second)","IsDeferred":false},{"Name":"Array intersection 1","Code":"first.filter((f) =\u003E second.includes(f))","IsDeferred":false},{"Name":"Array intersection 2","Code":"second.filter((f) =\u003E first.includes(f))","IsDeferred":false}]}