/**
 * Copyright (c) 2018 Dell Inc., or its subsidiaries. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 */ export type ReactChildren = ( React . ReactNode ) | ( React . ReactNode [ ] & React . ReactNode ) ; export function classNames ( classNameList ) { return classNameList . filter ( x => typeof x === "string" ) . join ( " " ) ; } export function allTrue ( obj ) { for ( let key in obj ) if ( ! obj [ key ] ) return false ; return true ; } export function allTrueOnKey ( obj , key ) { for ( let index in obj ) { if ( ! obj [ index ] [ key ] ) { return false ; } } return true ; } export function allFalseOnKey ( obj , key ) { for ( let index in obj ) { if ( obj [ index ] [ key ] ) { return false ; } } return true ; }