我有具有以下結構的Filter對象道具
{ cardControlItem: 'Tidak',
cardDirectUseItem: 'Tidak',
kbUnspscUuid: '6a564b8e-2976-4fde-8759-7951970d7500',
substoreUuid: '2f2b04bb-8b80-4b1f-b827-bf20311e31ee',
cardDetailMin: 654,
cardDetailMax: 65,
cardDetailIncrement: 754,
cardDetailPriceOverall: 4534,
cardDetailPriceUnit: 0,
ltMeasurementMinUuid: 'fddca37a-d0a3-40a4-8537-e84375b01601',
ltMeasurementMaxUuid: '2bc6d7d2-5167-4459-9910-a65839008afd' }
一個目的,我有以陣列鍵的列表
['cardControlItem', 'cardDirectUseItem', 'kbUnspscUuid', 'substoreUuid', 'stockCardGroupUuid', 'stockCardBatchUuid']
如何根據減少它陣列指定
預期輸出:
{ cardControlItem: 'Tidak',
cardDirectUseItem: 'Tidak',
kbUnspscUuid: '6a564b8e-2976-4fde-8759-7951970d7500',
substoreUuid: '2f2b04bb-8b80-4b1f-b827-bf20311e31ee' }
P.S:我花了3個小時在StackOverflow上找到類似的問題。什麼是這種問題的正確標題:D
解釋您的解決方案可能有助於未來的遊客。 –